Mail Archives: djgpp/1996/11/25/08:28:46
On Thu, 21 Nov 1996 05:11:54 +0200, 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 *)'
>
You need to include the a C++ library, e.g.,
gcc vector.cpp -o vector.exe -lstdcxx
- Raw text -