www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/05/12:44:44

Date: Thu, 5 Aug 1999 10:22:52 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Burger Rule <burger_rule AT mailcity DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Error in RHIDE
In-Reply-To: <7o9pn4$19oe$1@nnrp01.ops.uunet.co.za>
Message-ID: <Pine.SUN.3.91.990805101941.14908N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 4 Aug 1999, Burger Rule wrote:

> I paused the screen and noted ,when choosing RUN, it uses:
> 
>     gcc  -o  test.exe    test.o  -lstdcx
> 
> When I manually do the same as above, but with out the -lstdcx, it gives a
> bunch of errors.

You get errors because without -lstdcxx the linker doesn't find the C++ 
classes and functions your program uses.

> But shouldn't it use 'gxx'?.

Using gxx is just a way to avoid typing -lstdcxx on the command line.  
Since RHIDE is a program, not a person, it doesn't get tired of 
``typing'' another argument ;-).

> I also did the above using gxx without the '-lstdcx'.

That's because gxx uses -lstdcxx (note: 2 x's).  The problem solution for 
RHIDE is described in the DJGPP FAQ, section 8.7; please read it.

- Raw text -


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