Mail Archives: djgpp/1998/05/11/09:15:20
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 -