On 10/22/2011 5:48 PM, Philipp Kraus wrote: > I have checked each library (*.dll, *.a, *.dll.a) but no library file as > got a reference to the _WinMain > and I use the -mconsole linker flag. I don't understand why the linker > creates the error on some > codes and on other code there is no error. Linker options are the same
Sorry I missed the obvious, from your first message the library in question is libcygwin.a : $ nm /usr/lib/libcygwin.a | grep WinMain U _WinMain@16 I'm not sure why this static library is pulled. I also don't know what it is, cygwin1.dll doesn't have the reference. -- René Berber -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple