Mail Archives: djgpp/1998/05/06/22:15:58
Martijn de Munnik wrote:
>
> I've made a program which has to store a lot of data into mem, I always
> used bcc but a friend of my told me it's easier to use djgpp for
> allocating a lot of mem. The prorgam I created worked fine under UNIX but
> now i tried to compile it under dos the linker tells me
> 'C:\DJGPP\BIN/ld.exe: cannot open - lstdcxx: No such file or directory
> (ENOENT)'.
>
> I did the following to compile and link my list.cpp file:
> set djgpp=c:\djgpp\djgpp.env
> path=%path%;c:\djgpp\bin
> gpp -c list.cpp
> gpp -o list.exe list.o
>
> I also checked and both list.cpp and list.o where in the directory...
Most likely, you unzipped DJGPP with a program that does not understand
long filenames, so the name 'libstdcxx.a' in c:\djgpp\lib was truncated
to 'libstdcx.a'. If this is the case, make sure to unzip with a
LFN-aware program such as Winzip or the latest pkunzip.
The second most likely cause is that you did unzip with a LFN-aware
utility, but then didn't tell DJGPP programs to use long filenames. To
do this, put SET LFN=Y in your autoexec.bat, or run it along with the
other commands to set up DJGPP.
If you have any more problems, see the DJGPP Frequently Asked Questions
list. Chapters 6 and 8 specifically discuss compilation-related
problems, and chapter 6.12 gives instructions for posting request for
help to the discussion group.
hth
--
---------------------------------------------------------------------
| John M. Aldrich | "Autocracy is based on the assumption|
| aka Fighteer I | that one man is wiser than a million |
| mailto:fighteer AT cs DOT com | men. Let's play that over again, |
| http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long |
---------------------------------------------------------------------
- Raw text -