From: mimo AT gewi DOT kfunigraz DOT ac DOT at (mimo) Newsgroups: comp.os.msdos.djgpp Subject: Re: compiling STL in RHIDE Date: Thu, 07 May 1998 23:41:16 GMT Organization: MimoLand Lines: 33 Message-ID: <35534627.3032679@news.kfunigraz.ac.at> References: <6isd34$g1j AT avs DOT cs DOT rpi DOT edu> NNTP-Posting-Host: 143.50.169.49 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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