From: "Jason" Newsgroups: comp.os.msdos.djgpp References: <3cf5917c_1 AT news DOT iprimus DOT com DOT au> Subject: Re: Undefined reference to _finite Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Original-NNTP-Posting-Host: 203.134.47.138 Message-ID: <3cf6de1d_1@news.iprimus.com.au> X-Original-NNTP-Posting-Host: 127.0.0.1 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse AT iprimus DOT com DOT au Date: Fri, 31 May 2002 02:20:34 GMT NNTP-Posting-Host: 203.134.67.67 X-Complaints-To: news AT primus DOT ca X-Trace: news.tor.primus.ca 1022811634 203.134.67.67 (Thu, 30 May 2002 22:20:34 EDT) NNTP-Posting-Date: Thu, 30 May 2002 22:20:34 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have found a workaround for this when using RHIDE. You must add libstdcxx.a and the libm.a to the library section if the options menu. If you just add the m library, it won't work - stdcxx must be called first! Jase. "Jason" wrote in message news:3cf5917c_1 AT news DOT iprimus DOT com DOT au... > 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(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? > > Jase. > > >