help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error compiling stl samples with g++ in cygwin


From: red floyd
Subject: Re: error compiling stl samples with g++ in cygwin
Date: Tue, 01 May 2007 20:16:48 -0700
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)

TheOne wrote:
> 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]
> 
> 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?
>

Wrong group.  Try gnu.g++.help.

F/U set.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]