-
Notifications
You must be signed in to change notification settings - Fork 9
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
mingw32 #6
Comments
What do you mean by "override g++ with mingw32"? On what platform? |
On linux, you can get the windows.h headers for free by using mingw32 compiler ie. |
I see. Is there any advantage to using that specific compiler over MinGW-w64? I know vanilla MinGW still doesn't support Windows XP APIs and newer (at least not fully). Right now, using I forget if I added |
Nope that works great, I didn't know how to activate mingw thanks! I'm still confused why these headers are being loaded. https://github.com/sass/libsass/blob/master/file.cpp#L20-L22 guards the inclusion of the headers behind these sentinel flags, but qo includes them regardless of what -os I specify. Is there a piece I'm missing to build this? |
Can you paste the output of |
Sure can,
It auto fails on OS X with llvm/clang message. |
What happens if you put an #error before the second line of that file? #ifdef _WIN32
#error _WIN32 defined here
#include <direct.h>
#define getcwd _getcwd
And what's the OS X error? |
OS X auto dies with error about clang not supporting cross compilation.
|
You're trying to build a .rc file, which qo hardcodes to mean "Windows resource". What's your directory structure? Is this .rc file not a Windows resource? If I'm wrong I can fix it... |
I think it's finding an rc file because qo scrapes the directory Is there perhaps, and I realize this is a lot to ask, a way to whitelist
|
Can't you just put it in the Windows folder? |
As an example, these files are passed to g++: https://github.com/sass/libsass/blob/master/Makefile#L114-L153 and these headers are only passed when using MinGW: https://github.com/sass/libsass/blob/master/Makefile#L161-L172 |
The rc file in question ( |
Ahh duh, |
Another little caveat with a file.cpp: file.cpp
Then a file structure like:
This is throwing errors with qo, but seems to work fine with libsass's make tools. Should this work as is? |
No; what errors does it throw up? What is the difference between |
Glad you asked, that's what I've been looking at. https://gist.github.com/drewwells/5819cbba45ac6e0aa626 |
I moved more files around, then failed on
This is resolved by passing |
// #qo LIBS: dl |
Thanks that worked great! Is there anyway to specify ignoring certain files? |
@drewwells Not that I know of, though that would be a nice feature. |
It would be nice to be able to override g++ with mingw32 for compiling windows specific headers.
This is useful for compiling windows specific headers that caused this error:
The text was updated successfully, but these errors were encountered: