delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/05/07:48:00

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE & STL link command bug?
Date: Mon, 05 May 1997 11:11:19 +0200
Organization: TU Chemnitz-Zwickau
Lines: 38
Message-ID: <336DA437.5E1BFAD5@Mathematik.tu-chemnitz.de>
References: <336a5032 DOT 11085183 AT news DOT iol DOT it>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Daniele Prato wrote:
> 
> I am a new user of DJGPP tools and RHIDE and I plan to use STL...
> But I have a problem linking project.
> 
> When rhide link, use the command:
> 
> gcc -Xlinker -lstdcxx -oauto.exe auto.o loop.o sito.o veicle.o
> 
> (I have added "-lstdcxx" option in "Options-Linker Options" menu of
> rhide).

The first: If you want to link in your program additional
libraries, you should specify them in 'Options/Libraries'
and NOT in 'Options/Linker options'. This menu entry is only
for any addition special options for the linker (like
'-s' '-Map ...' and so on).

The second: The library you want is libstdcx.a.

> The correct command I think is:
> gcc  -oauto.exe auto.o loop.o sito.o veicle.o  -lstdcxx

No:
gcc -o auto.exe auto.o loop.o sito.o veicle.o -lstdcx

If you put 'stdcx' in the libraries dialog in RHIDE (and
mark checkbox before that line on), then you will get what
you want.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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