delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/14/03:37:25

Date: Fri, 14 Jun 2002 09:36:28 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: djgpp AT delorie DOT com
Subject: Re: gcc 3.10 and <iostream>
In-Reply-To: <Xns922D2CF541903raf256com@213.180.128.20>
Message-ID: <Pine.A41.4.05.10206140935010.18000-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 14 Jun 2002, Rafal 'Raf256' Maj wrote:

> 
> compiling on GCC 3.10
> 
> #include <iostream>
> int main() { return 0; }
> 
> gives :
> 
> Error: c:/djgpp/lib/gcc-lib/djgpp/3.1/libstdcxx.a(c++locale.o):
>   `void std::__convert_to_v<float>(char const*, float&,
>   std::_Ios_Iostate&, int* const&, int)':
> c++locale.o(135) Error: undefined reference to `_finite'
> Error: collect2: ld returned 1 exit status
> 
> 
> int main() { return 0; } 
> works o.k.
> 

You haven't said anything about command line You used (or whether
You tried to compile the example under RHIDE).

About problem You have: You should link libm.a after libstdcxx.a

Andris




- Raw text -


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