delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/15/05:33:52

Date: Sat, 15 Jun 2002 11:00:51 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: "J. L." <jlsgarrido AT hotmail DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: gcc 3.10 and <iostream>
In-Reply-To: <OE13jGHIcrw7pUMMQkO00003037@hotmail.com>
Message-ID: <Pine.A41.4.05.10206151058060.9930-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 Fri, 14 Jun 2002, J. L. wrote:

> 
> ----- Original Message -----
> From: "Rafal 'Raf256' Maj" <rafal AT raf256 DOT com>
> Newsgroups: comp.os.msdos.djgpp
> To: <djgpp AT delorie DOT com>
> Sent: Friday, June 14, 2002 7:44 AM
> Subject: Re: gcc 3.10 and <iostream>
> 
> 
> > Andris Pavenis <pavenis AT lanet DOT lv> 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<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
> > > 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

You NEVER will need that. gcc knows where to find libstdcxx.a.

> 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

No need for than

> > 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.

Add both 'stdcxx' and 'm' there (in this order). 

> libm, because libstdcxx is linked automatically (if you don't disable
> standard libraries).

But in this case libm.a will be linked before libstdcxx.a. You need an
opposite order

Andris




- Raw text -


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