www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/30/02:58:04

Date: Thu, 30 May 2002 09:57:44 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: djgpp-workers AT delorie DOT com
Subject: [Fix for v2.03 refresh] Re: Undefined reference to _finite
In-Reply-To: <3cf5917c_1@news.iprimus.com.au>
Message-ID: <Pine.A41.4.05.10205300947510.22308-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Thu, 30 May 2002, Jason wrote:

> Hi All,
> 
>   A strange one for you - after compiling a C++ program successfully using
> RHIDE and GCC v 3.1, I get a strange linker error:
> 
> Error: c:/djgpp/lib/gcc-lib/djgpp/3.1/libstdcxx.a(c++locale.o): In function
> ` 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
> 
>   I read a previous thread in this regard, and linking in libm.a doesn't fix
> it.  Also, libstdcxx.a is linked automatically.
> 
>   What could be the problem?
> 

libm.a should be linked AFTER libstdcxx.a. 

Is it OK to check in included patch for DJGPP v2.03 refresh. It is
applied already a rather long time ago for current CVS?

Andris

Index: djgpp/djgpp.env
===================================================================
RCS file: /cvs/djgpp/djgpp/djgpp.env,v
retrieving revision 1.8
diff -p -3 -r1.8 djgpp.env
*** djgpp/djgpp.env	1999/12/24 20:19:45	1.8
--- djgpp/djgpp.env	2002/05/30 06:52:03
*************** MANPATH=%/>;MANPATH%%DJDIR%/man;%DJDIR%/
*** 114,122 ****
  +PAGER=%DJDIR%/bin/less.exe
  
  [rhide]
! RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
! RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx
! RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx
  RHIDE_TYPED_LIBS_DJGPP.f=g2c m
  
  [grep]
--- 114,122 ----
  +PAGER=%DJDIR%/bin/less.exe
  
  [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_DJGPP.f=g2c m
  
  [grep]



- Raw text -


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