Mail Archives: djgpp/2002/06/05/03:04:42
On Tue, 4 Jun 2002, John E. Fagel wrote:
>
> >Please excuse the intrusion; I'm stuck, and need some help.
> >
> >I sent the below e-mail to Hoehner a couple of weeks ago, but have had no
> >response. (??? Maybe he's vacationing, ill, ... ???)
> >
> >I hesitate to bother you, but I've tried in vain to solve myself (read
> >everything I can find, experimented, etc.)
> >
> >I should most appreciate any help you will offer.
> >
> > ******************************************************
> >"Guten Tag, Herr Höhne:
> >
> >I am sorry to bother you with an (apparently ?) trivial problem, but I
> >cannot figure out what I'm doing wrong. Bitte schön ... help?
> >
> >Attempting to compile and link a simple little c++ program (attached ...
> >it's only 568 bytes), I get the following error message:
> >
> >"Error: j:/djgpp/lib/gcc-lib/djgpp/3.1//libstdcxx.a(c++locale.o): In
> >function c++locale.o(135)
> >Error: undefined reference to '_finite'
> >Error: collect2: ld returned 1 exit status
> >There were some errors"
> >
> > The program does compile, link, and run just fine (AOK) with
> > command line:
> > j:/djgpp/bin/ gxx -Wall -o leapyear.exe leapyear.cpp
> >
> >I am a newcomer to djgpp and to rhide, and am running Windows98 with 256M
> >memory.
> >
> >I recently downloaded djgpp203b, gcc31b, gpp31b, your 1.4.9, and Pavenis'
> >1.4.9.1 modification.
> >Both versions of RHIDE behave the same.
> >
One MUST link libm.a after libstdcxx.a.
Simpliest way is to specify both libstdcxx.a and libm.a (exactly in that
order) in list of libraries for RHIDE (Options --> Libraries)
Other way could be replacing DJGPP.ENV from currect CVS version of DJGPP.
(As there are plans to put it into refresh of djdev203.zip then I think
it's not a problem to post it here). I have put it at
http://www.ltn.lv/~pavenis/djgpp.env
(You could also additionally upgrade RHIDE from
http://rhide.sourceforge.net/snapshots)
Andris
- Raw text -