Mail Archives: djgpp/1996/04/20/08:30:14
Richard S. James Jr. (rsj AT metronet DOT com) wrote:
: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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
============================================
- Raw text -