-
Notifications
You must be signed in to change notification settings - Fork 44
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
Adding -municode doesn't fix undefined references to `WinMain' #106
Comments
I'm not sure why you log this as a specific winlibs issue, it seems you have general MinGW-w64 issues with our project. These kind of questions are better asked on forums like https://stackoverflow.com/ A quick Internet search for your issue leads me to https://techstalking.com/solved-wwinmain-unicode-and-mingw/ Also, why to you use |
Where is the repository that hosts the MinGW source code? This is not a StackOverflow question, it is a bug that is only present in MinGW.
I don't know either. MinGW for some reason uses WinMain instead of the standard main function. This doesn't happen on other compilers. I can't detect the intention of the user in project_options, and so I can't work around this MinGW bug by adding |
http://mingw-w64.sourceforge.net/ MinGW-w64 gcc uses |
Thanks. I'll open an issue there. In the above log I have included all the flags passed to g++ |
Reported here: |
I don't really understand why you try to fix the undefined reference to Can you try to search the entire folder recursively after running cmake for Otherwise a dirty workaround could be to actually define
|
It seems like an issue with Catch2 + MinGW. The main function defined by Catch2 isn't working with MinGW |
This is a Catch2 issue. Found the reason: |
I have written a macro in project_options to try to fix the
WinMain
issue in MinGW. But adding-municode
as a compile option doesn't fix the issue. Adding it as a link option causes linking to the fail with undefined reference towWinMain
. Other compilers don't need such flags, and I am not sure why we should do this for MinGW.Blocks aminya/project_options#129
https://github.com/aminya/cpp_vcpkg_project/runs/6542106054?check_suite_focus=true#step:6:203
The text was updated successfully, but these errors were encountered: