Mail Archives: djgpp/1998/05/07/09:47:38
From: | ingallsr AT avs DOT cs DOT rpi DOT edu (Robert Ingalls,2819)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | compiling STL in RHIDE
|
Date: | 7 May 1998 09:31:16 -0400
|
Organization: | Rensselaer Polytechnic Institute, Computer Science Department
|
Lines: | 26
|
Message-ID: | <6isd34$g1j@avs.cs.rpi.edu>
|
NNTP-Posting-Host: | avs.cs.rpi.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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.
--
Robert Ingalls
Troy, NY 12180
- Raw text -