Mail Archives: djgpp/1998/05/07/23:46:29
On 7 May 1998 09:31:16 -0400, ingallsr AT avs DOT cs DOT rpi DOT edu (Robert
Ingalls,2819) wrote:
>
>
>When I compile even the simplest program using STL in RHIDE, the
>program compiles and produces a .o file , but will not create an
>executable, and apparently does not even try to link. Here is the
>message from a three line program that creates a vector of ints.
>
>no errors
>Creating: testvec.exe
>Error: testvec.o: In function 'construct(int *, int const &)':
>Error: undefined reference to 'operator new (unsigned long, void *)'
>
>The program compiles, links and runs with no errors when I compile from
>the command line using gxx.
>
>I have tried linking with -lgpp -lstdcxx but it doesn't help.
>
>Also, when I allow rhide to choose the compiler (the default), the
>compile always hangs, and I need to restart DOS. To solve this, I
>choose compiler type gnu c++ from the local options window of the project
>menu.
hi,
have you already tried to add libgpp to your project? sounds strange
but it worked! second is maybe you should change your file type to cc
or cpp. had some trouble with this to...
mimo
- Raw text -