Mail Archives: djgpp-workers/2002/05/30/02:58:04
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 -