Problem compiling cpp programs with gcc-3.2-1

CBFalconer cbfalconer@yahoo.com
Tue Oct 29 03:44:00 GMT 2002


Mark Schoenberg wrote:
> 
> Thank you for your rapid and thorough reply.  Here is the slighly
> more sophisticated program which just pops up a window and exits
> upon IDCANCEL. The compilation output to the command
> 
> gcc -O2 -mno-cygwin -mwindows short.cpp  \
> -lkernel32 -luser32 -lgdi32 -lwinspool \
> -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 \
> anv.res -o short
> 
> is NULL under 2.95.3-5. (i.e. perfect compilation without warnings).
> 
> The compilation output under 3.2.1-1 is
> 
> /DOCUME~1/Mark/LOCALS~1/Temp/ccpKyX2E.o(.text+0x2f8):short.cpp:
>    undefined reference to `operator new(unsigned)'
... snip ...

smells of a missing "use namespace : std" to me.

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list