Mail Archives: djgpp/1999/09/04/10:22:35
> 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 -