[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error compiling stl samples with g++ in cygwin
From: |
TheOne |
Subject: |
error compiling stl samples with g++ in cygwin |
Date: |
1 May 2007 23:28:53 -0700 |
User-agent: |
G2/1.0 |
I downloaded sample codes from
http://www.cs.rpi.edu/~musser/stl-book/source/src.zip
and tried to compile them.
I started my cygwin on xp, renamed Makefile.unix to Makefile and typed
"make". After several successful compilation, it spat out following
error :
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):
(.text+0xab): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [ex04-01] 오류 1
There's no WinMain in the code. Strangely, when I retried "make",
compile is succuessful for the file but again after several succuess,
make complain with the same error message with another source code.
What can cause the problem?
TIA.