This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problem compiling cpp programs with gcc-3.2-1
- From: CBFalconer <cbfalconer at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Oct 2002 04:29:45 -0500
- Subject: Re: Problem compiling cpp programs with gcc-3.2-1
- Organization: Ched Research
- References: <EmmesTechnologies200223361729696.26988@EMMES1>
- Reply-to: cbfalconer at worldnet dot att dot net
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/