Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3DBE5509.312D25C7@yahoo.com> Date: Tue, 29 Oct 2002 04:29:45 -0500 From: CBFalconer Reply-To: cbfalconer AT worldnet DOT att DOT net Organization: Ched Research X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Problem compiling cpp programs with gcc-3.2-1 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. 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/