[ACCEPTED]-Undefined reference to WinMain in Cygwin-winmain
Accepted answer
Use -c
compile flag to only produce object 2 file. Without -c
it tries to link an executable 1 and the linker (called automatically) fails.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.