This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem compiling cpp programs with gcc-3.2-1


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]