This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: Libraries not working


> tjoen@dds.nl writes:
> > 
> > I guess that it is only declared, not defined
> > 
> > > Also I have a main function and the FAQ says that if you
> > > get the undefined reference to `WinMain@16' to include a blank main
> > > statement, well, I am not building a library I already HAVE a main
> > > statement.
> > 
> > One solution: link with WinMain.o
> > The other was explained by Mumit Khan in a posting May 13
> 
> I believe you're referring to the problem that shows up when linking V 
> GUI examples, which puts WinMain in a library. The solution there is to
> use -Wl,-u,_WinMain@16 when linking (in addition to -mwindows).

Yes, just reread that when the problem came along

> I don't have enough information on this particular problem to be able
> to comment. 

That is true. By private e-mail the original poster came with
new details. I was on the wrong track.
I replied to post the problem more clearly on the list.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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