This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41128] ld: cannot find -luser32 problem
- From: "justineuro at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2009 00:09:23 -0000
- Subject: [Bug c/41128] ld: cannot find -luser32 problem
- References: <bug-41128-18087@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from justineuro at yahoo dot com 2009-08-31 00:09 -------
(In reply to comment #1)
> This is a bug in your installation of GCC and cygwin.
Thanks for the reply. I have since re-installed and subsequently got an
"undefined reference to _WinMain@16' error". It turns out I had to add the
-shared option, i.e., use the command line "gcc -shared -o file.exe file.c". I
got this solution from url:
http://forums.sun.com/thread.jspa?threadID=5305805&messageID=10359759. All is
fine now. Again thanks!
Justine
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41128