From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Cannot find crt0.o Date: Sun, 23 Apr 2000 10:45:57 GMT Organization: always disorganized Lines: 53 Message-ID: <3902d43f.10292139@news.freeserve.net> References: <20000422164823 DOT 93266 DOT qmail AT hotmail DOT com> NNTP-Posting-Host: modem-180.nebraska.dialup.pol.co.uk X-Trace: newsg1.svr.pol.co.uk 956486758 31011 62.137.78.180 (23 Apr 2000 10:45:58 GMT) NNTP-Posting-Date: 23 Apr 2000 10:45:58 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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.