From: John Garrison <jeg@visi.net>
To: cygwin@sourceware.cygnus.com
Subject: Libraries not working
Date: Sat, 03 Jul 1999 22:42:00 -0000 [thread overview]
Message-ID: <377EF3D9.27DD271@visi.net> (raw)
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@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@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@sourceware.cygnus.com
WARNING: multiple messages have this Message-ID
From: John Garrison <jeg@visi.net>
To: cygwin@sourceware.cygnus.com
Subject: Libraries not working
Date: Sat, 31 Jul 1999 18:34:00 -0000 [thread overview]
Message-ID: <377EF3D9.27DD271@visi.net> (raw)
Message-ID: <19990731183400.OZjdRuoMrC80gGmr6RybvFplvlPLLr_wotYhCBbXW3Q@z> (raw)
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@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@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@sourceware.cygnus.com
next reply other threads:[~1999-07-03 22:42 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-03 22:42 John Garrison [this message]
1999-07-04 9:57 ` tjoen
1999-07-04 17:51 ` Mumit Khan
1999-07-05 11:02 ` tjoen
1999-07-31 18:34 ` tjoen
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` tjoen
1999-07-31 18:34 ` John Garrison
1999-07-05 13:21 John Garrison
1999-07-06 11:15 ` Mumit Khan
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` John Garrison
1999-07-06 12:01 John Garrison
1999-07-06 12:53 ` Mumit Khan
1999-07-06 13:21 ` John Garrison
1999-07-06 14:27 ` Mumit Khan
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` John Garrison
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` John Garrison
1999-07-06 14:31 DJ Delorie
1999-07-06 14:50 ` Mumit Khan
1999-07-06 15:04 ` John Garrison
1999-07-06 15:23 ` Mumit Khan
1999-07-06 15:47 ` John Garrison
1999-07-06 19:31 ` Mumit Khan
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` John Garrison
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` John Garrison
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` DJ Delorie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=377EF3D9.27DD271@visi.net \
--to=jeg@visi.net \
--cc=cygwin@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).