This is the mail archive of the
mailing list for the Cygwin project.
Re: Libraries not working
- To: email@example.com
- Subject: Re: Libraries not working
- From: firstname.lastname@example.org
- Date: Sun, 4 Jul 1999 11:18:59 +0200 (MEST)
> /tmp/cciFT7S1.o(.text+0x103):show.c: undefined reference to
> undefined reference to `WinMain@16'
> collect2: ld returned 1 exit status
> IMG_Load_RW is clearly defined in IMG.h which is included in the show.c
> source code.
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
One solution: link with WinMain.o
The other was explained by Mumit Khan in a posting May 13
Want to unsubscribe from this list?
Send a message to email@example.com