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 10/23/2011 5:07 AM, Philipp Kraus wrote:

> On 2011-10-23 01:28:37 +0200, René Berber said:
> 
>> I'm not sure why this static library is pulled.
> 
> yes *g* that my problem also. My cygwin g++ / ld
> links it automatically

Where it comes from? The compiler specs:

$ g++ -dumpspecs
...
*lib:
  %{pg:-lgmon}   %{!mno-cygwin:-lcygwin}  ...

Its always linked and needed, and it doesn't cause the "undefined
reference to _WinMain" problem in other compilations.

There must be something else that uses something that pulls _WinMain.

Perhaps looking at the link map will clarify what is going on:

	g++ -Wl,-M ... > link-map.txt
-- 
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


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