www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <377EF3D9.27DD271@visi.net> |
Date: | Sun, 04 Jul 1999 01:40:41 -0400 |
From: | John Garrison <jeg AT visi DOT net> |
X-Mailer: | Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Libraries not working |
I have just created a library using ar. I have a program that links to the library, and have the header file included in the code. Everything is setup properly ( I know because it compiles fine with gcc) I am using the cross compiler on Linux version by the way. The problem is after I try to compile the program I get a: /tmp/cciFT7S1.o(.text+0x103):show.c: undefined reference to `IMG_Load_RW' /usr/win32/bin/../lib/gcc-lib/i586-mingw32/egcs-2.91.57/../../../../i586-mingw32/lib/libmingw32.a(main.o)(.text+0x7b): undefined reference to `WinMain AT 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. Also I have a main function and the FAQ says that if you get the undefined reference to `WinMain AT 16' to include a blank main statement, well, I am not building a library I already HAVE a main statement. Any ideas why it would complain about not having two things that it does have? -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |