-
Notifications
You must be signed in to change notification settings - Fork 30
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
Compiling under MINGW-w64/MSYS2 #11
Comments
You realize, I could apply this patch but I won't be able to test it. Let me just ask, is it working for you? Dan |
Try the core generator now. As far as I can tell, this should (now) be fixed. Dan |
Sorry, it does not work for me like that. The current code produces a lot of errors, and it does not seem to go into the IF clause at all. However, the code compiles when I remove the
before the #ifdef _MSC_VER in line 67 Please note that there is a comment about "Macintosh environment" in your code. To answer to your first question, yes, adding this code removes all issues and lets me run the generator. |
This isn't for the Mac? My bad then. If the "elif" isn't getting acted on, then is the prior "ifdef" what's getting run or the one following? If the one following, then ... is that because the "__MINGW32__" macro I used isn't defined? The reason why I rewrote the code from what you gave me is because I needed to. I've now got three separate operating environments, all different, all of which need to be supported, and no two of which should ever be true together. Hence the need for the 3-way "if" statement. Would it work if the "ifdef _MSC_VER" was adjusted to "#if defined(_MSC_VER)"? That should be valid C preprocessor syntax--although what's there should be valid syntax too. I'd be quite curious to know why it isn't running for you. Dan |
Turns out the problem is not with the preprocessor syntax.
|
Ok, patched. Please give it a test and tell me if it works. (It should ...) Dan |
Yes, I can confirm that the current version compiles without problems. Thank you |
Awesome! Thank you for your help. I'm sure others using MinGW thank you as well. Closing this issue. Dan |
...works after adding the following at the beginning of fftgen.cpp
The text was updated successfully, but these errors were encountered: