Mail Archives: djgpp/1996/11/21/18:13:37
Mordo Ezagouri <mordo AT yarden DOT yarden DOT ac DOT il> wrote:
>Can someone help me using STL with DJGPP ?
>Here is my sample program (vector.cpp):
>#include <stl.h>
>int main()
>{
> vector<int> 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
- Raw text -