Mail Archives: djgpp/2000/04/23/07:20:33
Paul Edwards wrote:
>I did send an email will the same subject heading on the 21st April, but I
>don't think it was recieved.
Yes it was. And DJ Delorie replied that you should have
set djgpp=c:\djgpp\djgpp.env
not
set djgpp = c:\djgpp\djgpp.env
However, I think you must really have got this correct, or you would have
got a different error message. DJ's other suggestion was to try
gcc -v -o hello.exe hello.c
and see what it prints out.
>Anyway, my problem is that when trying to compile a c++ program, using :
>
>gcc -o hello.exe hello.c
>
>the compiler responds by saying:
>
>c:/djgpp/bin/ld.exe: cannot open crt0.o : No such file or directory (ENOENT)
>
>I tried looking for the file in the include directory, but only found
>crt0.h, but in the lib directory, I found crt0.o (which I believe is only
>used for c programs.)
The lib directory is for object files (such as crt0.o) and libraries
(which are really just collections of object files). So your files are
in the correct directories.
>I have made sure that the bin, include and lib directories are set in the
>path environment
Only the bin directory needs to be in your path, since there are no
executables in the include and lib directories. This isn't the cause
of your problems though.
I suggest trying the "gcc -v" thing and posting the results here if you
still can't work out what's wrong.
It seems a bit mysterious to me though. Perhaps you could try
set LIBRARY_PATH=c:/djgpp/lib
but really this should be taken care of automatically by djgpp.env.
S.
- Raw text -