delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/16/03:00:19

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: c++
Date: Wed, 15 Apr 1998 18:51:02 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 34
Message-ID: <353539D6.284D@cs.com>
References: <353467E2 DOT 61730534 AT connexus DOT net DOT au>
NNTP-Posting-Host: ppp228.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Peter Russell wrote:
> 
> Well guys I guess you would rank me a beginner. I have set up djgpp and
> got it working with allegro ok but when it is not set up for working
> with allegro (in rhide that is). Still working in C++ I get this error
> msg.
> 
> error: F:\djgpp\bin\ld.exe: cannot open -lstdcx: no such file or
> directory (ENOENT)

RHIDE 1.4 wasn't designed with gcc 2.8.0 in mind.  The solution is
simple:  edit the file %DJDIR%/share/rhide/rhide.env (or create it if it
doesn't already exist), and put the following line in it:

RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx

After doing this, RHIDE should link C++ programs correctly.

BTW, putting the setting in 'rhide.env' is a better option than putting
it in 'djgpp.env', because it's very likely that the next version of
RHIDE will have the problem corrected.

> Also how can I switch the setting to "gpp" in rhide instead of gcc.

You don't need to.  The only reason to use 'gpp' is to link the C++
libraries, which RHIDE does all by itself.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"Men rarely (if ever) manage to dream |
|       aka Fighteer I       |up a god superior to themselves. Most |
|   mailto:fighteer AT cs DOT com   |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child."    - Lazarus Long     |
---------------------------------------------------------------------

- Raw text -


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