delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/04/10:22:35

From: kalum AT mycabin DOT com
Message-ID: <37C6842800113658@mypad.MYPAD.COM> (added by postmaster@mypad.MYPAD.COM)
To: djgpp AT delorie DOT com
Subject: Re: DJGPP wont compile C++ programs
Date: Sat, 4 Sep 99 00:26:40 +0000
X-Mailer: Endymion MailMan Standard Edition v3.0.2
Reply-To: djgpp AT delorie DOT com

> I am trying to compile a simple C++ program. Actually, it compiles fine, but
> when it reaches the point where it creates the exe I get an error.
> 
> Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or directory
> (ENOENT)
> 
> I am using the RHIDE IDE. C programs work fine. Any ideas?
> 
> Thanks,
> Nick
> 
> 

I am quoting from the DJGPP FAQ. Please try to download a copy of it.

An error message about missing `-lstdcx' usually means that the linker cannot
find the standard C++ library, `libstdcxx.a'.  Look into your `lib/'
subdirectory to see if it's there; if not, unzip it from the `gppNNNb.zip'
file.  If `libstdcxx.a' exists but the linker still complains, you most
probably have a problem related to long file names on Windows 9X
(`libstdcxx.a' exceeds the DOS 8+3 limits).  For a quick fix, try to `set
LFN=y' in the environment and see if that helps.  If that doesn't help, make
sure you unpacked `gppNNNb.zip' with an unzip program which supports long
file names.  This issue is further complicated if you use RHIDE, and is
described in full in the file `gnu/gcc-2.81/problems.txt' which comes with
the GCC distribution (and which you should have read before installing it).
Bottom line is that you need to add a line either to `rhide.env' or to
`DJGPP.ENV' which says this:

      RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx

When you add this line, make sure neither it nor the `[rhide]' line have
trailing whitespace, otherwise RHIDE will not recognize these lines.

Hope this solves your problem.
See you.
PS-  Enjoy DJGPP
!

_____________________________________________
Free email with cool domains at FriendlyEmail
http://www.mypad.com/


- Raw text -


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