delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/29/05:38:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cbfalconer AT yahoo DOT com>
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: <EmmesTechnologies200223361729696 DOT 26988 AT EMMES1>

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.
   <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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019