www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/06/22:57:55

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: STL linker error
Date: Wed, 06 Nov 1996 21:03:29 -0800
Organization: Three pounds of chaos and a pinch of salt
Lines: 23
Message-ID: <32816DA1.523B@cs.com>
References: <55qvkl$akm AT gate DOT sinica DOT edu DOT tw>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp225.cs.com
Mime-Version: 1.0
To: Kuang-Chun Cheng <kccheng AT hep2 DOT phys DOT sinica DOT edu DOT tw>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kuang-Chun Cheng wrote:
> 
> Hi,
> 
>     I am learning STL by trying the example at Musser's book.
> I am using djgpp v2.  The simple example (example 1-3, p19)
 [snip]
> cause a error at link-time as follows,
>    undefined reference to 'operator new (unsigned long, void *)'

You have to link libstdcx.a when you compile with the '-l stdcx' switch
to gxx.  AFAIK, v2.01 corrects this misbehavior of 'gxx', so you should
probably upgrade ASAP.

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O-
M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++
h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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