-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Internal compiler error when building with MinGW on Windows #1531
Comments
Yes, it works as well. |
Great, thanks for checking. Could you submit a PR with these two small changes and a comment that it's a workaround for MinGW? |
Sure |
vitaut
changed the title
Segmentation fault when building with MinGW on Windows
Internal compiler error when building with MinGW on Windows
Jan 23, 2020
@ryusakki, could you also post your compiler version here for future reference? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i tried to build a console app using the header-only version, got the following error:
This was caused by the snprintf assignment to snprintf_ptr variable. I was able to build successfully after a few changes:
Line 64, change:
#define FMT_SNPRINTF snprintf
To:
#if defined(__MINGW32__)
int (*psnprintf)(char*, std::size_t, char const*, ...) = std::snprintf;
#define FMT_SNPRINTF psnprintf
#else
#define FMT_SNPRINTF snprintf
#endif
The text was updated successfully, but these errors were encountered: