-
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
build-djgpp.sh
failed on MSYS2/MINGW64/UCRT64
#41
Comments
Thanks for reporting! Maybe a simple fix is to add If it doesn't work I'll backport and include the patch you linked. |
It works. Thanks :) |
Nice, thanks for confirming! |
I can't seem to compile on 64-bit Windows (via mingw-w64/msys2) with The problem seems to be with a single file, I temporarily added the line |
Ah, well, it was a bit of a hack anyway. But worth a try. I suppose the only "correct" solution is to backport that patch from gcc 14. I'd just have to do it for each gcc version supported by these scripts (that's 31 times). Easier option, but still a hack, is to add the macro in Will look into it tomorrow. |
I went with the easy option. The patch didn't apply to gcc 12 already, and it got progressively worse after that. This should work now. |
Seems good enough. It works, so why make things overly complicated? |
Agree, there's nothing wrong with this approach now. Possible concern is that in the future, gcc may need stuff from |
Hello,
I'm trying to build djgpp with the
build-djgpp.sh
on MSYS2 (whether environmentMINGW64
orUCRT64
), however I have the following error:I found this post on stackoverflow.
It seems that after a Mingw-w64 update, "you should always
#define WIN32_LEAN_AND_MEAN
before calling#include <windows.h>
".You can already found this patch (already pushed on the gcc repository) but I don't know if it works as is on the gcc version 12.2.0.
The text was updated successfully, but these errors were encountered: