Xref: news2.mv.net comp.os.msdos.djgpp:2882 From: elric AT wheel DOT ucdavis DOT edu (Jeffrey Taylor) Newsgroups: comp.os.msdos.djgpp Subject: Re: STL problems Date: 19 Apr 1996 23:02:36 GMT Organization: Davis Community Network - Davis, California, USA Lines: 25 Message-ID: <4l962c$ria@mark.ucdavis.edu> References: <4l6lmr$rn6 AT feenix DOT metronet DOT com> NNTP-Posting-Host: wheel.dcn.davis.ca.us To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Richard S. James Jr. (rsj AT metronet DOT com) wrote: : Eli Zaretskii wrote: : >On Fri, 5 Apr 1996, Josh Stevens wrote: : >> However, when executing the line "gcc test.cpp -o test.exe -Wall : >> -liostr", I get this error: : >> : >> test.cc(.text+0x95f): undefined reference to `operator new(unsigned : >> long, void *)' : >> : >> Does anyone know how to keep this error from occuring? Thanks. A modified version of the STL is included in the 22 Feb release of V2. You must use this, not the HP distribution. Alos add -lstdcxx to the link step. It works, though compile times go thru the roof on a small machine and not all the functions are present (e.g., reserve() on vectors). I'm using the vector<> and map<> template classes. I've cut over 20% of my code out by using it and speed has improved by 10% on my text adventure game compiler. ============================================ Without my guitar, I am a poet without arms. - Michael Bloomfield ============================================