New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows support #1
Comments
[using MinGW to compile] After neutering test.d of its struct literal issues (see other issue), it fully compiles. A minor remaining issue is that the resulting exe wants both libgcc_s_dw2-1.dll and libstdc++-6.dll. As suggested here adding -static-libgcc and -static-libstdc++ to the linker options might be wise, for the Windows version at least. |
Had some issues compiling your latest version. Played around making some edits, which refused to show up in the generated files.Turns out the make clean didn't clean up enough. The .rdmd folder in \tmp persisted, and the contents were reused without recompiling. So I made some changes to the makefile (see last commits in my fork), but the fix_prefix is a bit of a mystery so I left it alone for now. (I'm not sure what the fix_prefix = ... is supposed to do, but for me it creates a \tmp folder in my root) |
The fix_prefix macro is used because of an issue with MinGW; it has Unix-style directory separators in its TEMP environment variable, which throws OPTLINK off. I just convert those to Windows-style separators. Just out of curiosity, are you running make from the MinGW shell? |
Yes I do. I assumed it was supposed to do something like that, but why I end up with a C:\tmp.rdmd.. is beyond me.. |
The MinGW path is /tmp, which I convert to \tmp, which Windows treats as C:\tmp. I guess it would be a better idea to actually point it to the "real" system temp folder, wherever that is. |
tl;dr: The code in my fork compiles on Windows, and the small test-case in test.d works!. I went back to the basics, commented/modified/separated the code to understand every part of the process. Currently everything is explicitly managed via cppNew and cppDelete, no D constructors. I feel like this is a great step forward. If you can, please take a look at it :) |
Good work! I needed to clean up the code anyway; it was getting a bit hairy. Life has gotten incredibly busy, so I probably won't have time to help with On Thu, Nov 7, 2013 at 8:13 AM, vuaru notifications@github.com wrote:
|
Windows support is currently lacking; we need to figure out how to resolve linking issues and hiccups with OPTLINK.
The text was updated successfully, but these errors were encountered: