Date: Thu, 4 Jul 2002 10:46:48 +0300 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: Evan Hefner Cc: djgpp AT delorie DOT com Subject: Re: compiler not working In-Reply-To: <059501c22306$61d17c90$0a02010a@mail2world.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 3 Jul 2002, Evan Hefner wrote: > When I try to compile the following C++ program with RHIDE, it gives me > link errors refering to (iostream?) functions. I have no idea what the > problem is. Can anyone tell me how to fix it? > The program is as follows: > #include > int main(){ > return 0; > } > The first error I get is something about a function __convert_to_v in > locale.o and the second is something about an undefined reference to > _finite. I guess You're using gcc-3.1 (but please don't think that it always it's possible to guess what You're using. I'ts recommended to provide more complete information to get help) You should link libm.a after libstdcxx.a Try following (I know Eli will be not happy with the recommendation ...): 1) Find file DJGPP.ENV, to which environment variable DJGPP is pointing 2) Backup it (to be able to restore it if editting will break it) 3) Find RHIDE related section (Some lines after line which contains '[rhide]') 4) And replace it with following (You should already have similar lines in Your DJGPP.ENV): [rhide] +RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx m +RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx m +RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx m +RHIDE_TYPED_LIBS.f=g2c m Please don't change anything else in this file Andris