X-Originating-IP: [200.34.143.5] From: "J. L." To: References: Subject: Re: gcc 3.10 and Date: Fri, 14 Jun 2002 10:31:47 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: X-OriginalArrivalTime: 14 Jun 2002 15:31:49.0421 (UTC) FILETIME=[99C01DD0:01C213B8] Reply-To: djgpp AT delorie DOT com ----- Original Message ----- From: "Rafal 'Raf256' Maj" Newsgroups: comp.os.msdos.djgpp To: Sent: Friday, June 14, 2002 7:44 AM Subject: Re: gcc 3.10 and > Andris Pavenis wrote in > news:Pine DOT A41 DOT 4 DOT 05 DOT 10206140935010 DOT 18000-100000 AT ieva06: > > >> Error: c:/djgpp/lib/gcc-lib/djgpp/3.1/libstdcxx.a(c++locale.o): > >> `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 > > You haven't said anything about command line You used (or whether > > You tried to compile the example under RHIDE). > > it was under RHIDE 1.5 > > > About problem You have: You should link libm.a after libstdcxx.a > > How can I do this under RHIDE ? If you´re using RHIDE, maybe can help you add the path of libstdcxx. In Options->Directories->Libraries add C:/djgpp/lib/gcc-lib/djgpp/3.1 (change according your DJGPP-path. Maybe there is another better solution, but this is the only way that I found to build c++ code whit RHIDE. > I tryide to disable [ ] link standart libraries > then I added manualy cxxstd and c Don't do it! Just add libm, i.e. add m in Options->Libraries, and check box on left. > how can I add crt0.a ? The problem is - this name does not start from 'lib' > and using crt0 makes linker search for libcrt0.a > What exacly libraries do I need ? libm, because libstdcxx is linked automatically (if you don't disable standard libraries). > When some path will be relased ? Do you mean *patch*? > Is this a bug in GCC ? afair order of linking libraries should'nt make any > difference > I'm not sure, but I see related problems discussed here. > -- > Rafa³ 'Raf256' Maj >