From: "John M. Aldrich" 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Kuang-Chun Cheng 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 -----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------