Mail Archives: djgpp/1996/07/10/04:31:30
Xref: | news2.mv.net comp.os.msdos.djgpp:5813
|
From: | elric AT wheel DOT dcn DOT davis DOT ca DOT us (Jeffrey Taylor)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: stl and djgpp?
|
Date: | 9 Jul 1996 18:40:16 GMT
|
Organization: | Davis Community Network - Davis, California, USA
|
Lines: | 30
|
Message-ID: | <4ru92g$6je@mark.ucdavis.edu>
|
References: | <01bb67a2.ddf05a60$1379d484 AT sboivin>
|
NNTP-Posting-Host: | wheel.dcn.davis.ca.us
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Sb (sboivin AT uqac DOT uquebec DOT ca) wrote:
: Hi, I'm new to DJGPP (v2). I compiled some elementary
: C++ programs without problem, but I was unable to
: compile (link) this one which use STL:
:
: #include <stl.h>
: #include <iostream.h>
: int main() {
: vector<int> v(5);
: for (int i = 0; i < v.size(); i++) v[i] = i + 1;
: cout << "v[1] = " << v[1] << "\n";
: return 0;
: }
:
: gxx test.cc reply:
:
: test.cc(.text+0xa9f): undefined reference to 'operator
: new(unsigned long,void *)'
I suspect that you do not have the latest version of the libraries (they
should be dated on or after 22 Feb, or you are not linking with libstdcx.
Do you have -lstdcx on your command line. STL support is included in the
latest release, but you must use the STL included with it. The HP
distribution does not work.
--
============================================
Without my guitar, I am a poet without arms.
- Michael Bloomfield
============================================
- Raw text -