From: weiqigao AT crl DOT com (Weiqi Gao) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and STL Date: Thu, 21 Nov 1996 15:22:59 GMT Organization: CRL Dialup Internet Access Lines: 39 Message-ID: <571s9r$i53@nexp.crl.com> References: <3293C87A DOT 7AEF AT yarden DOT yarden DOT ac DOT il> NNTP-Posting-Host: crl11.crl.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Mordo Ezagouri wrote: >Can someone help me using STL with DJGPP ? >Here is my sample program (vector.cpp): >#include >int main() >{ > vector v(10); > return 0; >} >I get a linking error: >vector.cc(.text+0xa0f): undefined reference to 'operator new(unsigned >long, void *)' >The same source is OK with Borland C++ 4.52, 5.01 and g++ on Linux 2.0.0 >so what's wrong ? >Thanks in advance I don't know what's wrong, but! if you use gxx instead of gcc, everything works out OK. While on the topic of the STL, there's a wonderful introductory tutorial available on at www.infosys.tuwien.ac.at. (I forgot the URL, but I found it searching for "Standard Template Library Tutorial" on Lycos or AltaVista. I then downloaded the PostScript version, but the printed pages have no mention of its URL.) It might be a bit boring for you guys, but it does a wonderful job leading me into the details of the STL. -- Weiqi Gao weiqigao AT crl DOT com