This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ linker problem with libcygwin.a


On 2011-10-22 23:43:32 +0200, René Berber said:

On 10/22/2011 3:37 PM, Philipp Kraus wrote:

[snip]
error
is created again. Should I rebuild my libraries with the -mconsole
option, at the time
I have build them only with configure, make, make install?

You can check which libraries have a reference to _WinMain@16 by using nm.


$ nm /usr/local/bin/<your_library>.dll | grep WinMain

then rebuild only those.

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


Thx

Phil



--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]