delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/08/14:00:30

From: "Eric Nute" <eric DOT nute AT nokia DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Compile problems when using rhide but not when using gxx
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Message-ID: <NbkW8.8852$ZE1.186312@news1.nokia.com>
Date: Mon, 08 Jul 2002 17:44:13 GMT
NNTP-Posting-Host: 172.18.140.144
X-Complaints-To: newsmaster AT nokia DOT com
X-Trace: news1.nokia.com 1026150253 172.18.140.144 (Mon, 08 Jul 2002 20:44:13 EET DST)
NNTP-Posting-Date: Mon, 08 Jul 2002 20:44:13 EET DST
Organization: Nokia
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

I used djgpp and rhide previously (about two years ago) without any problems
on a Win98 machine.  I am now trying to use the same combo on a Win2000
machine, and I am running into an issue when trying to compile a program
under rhide.

I just downloaded everything the filepicker told me to, and used the
provided unzip32.exe utility.  I then restored my source files from 2 years
ago.  I am able to compile my old programs via the commandline with:

gxx smart2.cpp

I am able to compile the program to a ".o" file with Alt+F9 via rhide, but
if I try to "Build all" or "Run" my program, I get the 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

The command rhide uses to compile my program are:

gcc   -g              -c smart2.cpp -o smart2.o
      which seems to generate no errors, and

gcc   -o class.exe  smart2.o     -lstdcxx
      which seems to generate the error listed above.

It seems that "out of the box", on Win2000, rhide is using incorrect command
line syntax to compile my C++ program.  I have tried to read through the
documentation and the newsgroup, but my searches are not turning up anything
usefull.  Can someone please point to the right place to find an the answer
to solve this compile problem?

----
Eric Nute






- Raw text -


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