www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/20/08:30:14

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: <Pine DOT SUN DOT 3 DOT 91 DOT 960407115114 DOT 22664A-100000 AT is> <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 <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 -


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