www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/04/04:15:48

Date: Thu, 4 Jul 2002 10:46:48 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Evan Hefner <sell AT mail2broker DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: compiler not working
In-Reply-To: <059501c22306$61d17c90$0a02010a@mail2world.com>
Message-ID: <Pine.A41.4.05.10207041037450.20734-100000@ieva06>
MIME-Version: 1.0
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


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 <isotream> 
> 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




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019