delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/09:15:20

From: michael DOT mauch AT gmx DOT de (Michael Mauch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with g++.exe / RHIDE
Date: Mon, 11 May 1998 15:07:20 +0200
Organization: Gerhard-Mercator-Universitaet -GH- Duisburg
Lines: 46
Message-ID: <6j6t68$hlf$1@news-hrz.uni-duisburg.de>
References: <355654c7 DOT 17230945 AT news DOT servtech DOT com>
NNTP-Posting-Host: ppp108.uni-duisburg.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Mon, 11 May 1998 01:40:27 GMT, harlequin AT tmbg DOT org (Chaos Harlequin)
wrote:

> I've been using RHIDE as my IDE ever since I started using DJGPP, and
> when using C programs, it's worked fine. However, I've begun to try to
> compile C++ programs, and I've had a problem. Whenever I try using the
> "Run" command on any such program, I get the error message:
> 
> Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or
> directory (EN0ENT)

In the file %DJDIR%/share/rhide/rhide.env, add a line

RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx

-- if you don't have %DJDIR%/share/rhide/rhide.env, create it.
 
> When I run the "g++.exe" program to compile C++ programs, the error
> message reads:
> 
> ld.exe: cannot open -lstdcxx: No such file or directory (ENOENT)

I guess you have gcc 2.8.0 or 2.8.1 but didn't install the gpp281b.zip
or didn't remove your old `specs´ and/or `djgpp.djl´ file(s) from
%DJDIR%/lib.
 
> I tried using other options in the dialog box which lets you pick a
> compiler, but everything I tried caused the compiler to treat the code
> as C, rather than C++. 
> 
> Oddly enough, when I simply type "gcc x.cc" the code seems to compile
> fine. 

If you say "gcc x.cc", you code is compiled as C++, but none of the
standard C++ libraries is included (especially not libstdcxx.a). Try
using a line like 

	cout << "Hello world!" << endl;

and gcc will complain that it can't find the library.

If you don't find the reason for your problem, create a Bug Report with
RHIDE (on the "-" menu in the left corner) and post it here.

Regards...
		Michael

- Raw text -


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