X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.129.203 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: Djggp doesn't work Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 51 Date: Sat, 10 Sep 2005 14:26:31 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1126362391 24.71.223.147 (Sat, 10 Sep 2005 08:26:31 MDT) NNTP-Posting-Date: Sat, 10 Sep 2005 08:26:31 MDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 10 Sep 2005 13:46:49 GMT in comp.os.msdos.djgpp, wrote: >I have a problem with djgpp gcc4.0.1 on win2003 Your problem is not reading the manual -- type "info gcc" >when I compile with gcc -c filename.c creates an object file filename.o >when I try to compile with the option -o option -o specifies the name of the output file, not input object files >an error message that says appears: >C:\Djgpp\Myfile>gcc dat.exe -o dat.o >gcc.exe: dat.exe: No such file or directory (ENOENT) >gcc.exe: no input files This command line is nonsense and tries to compile dat.exe into dat.o: what happened to filename.c and it's compiled version filename.o? Depending on your input and output filenames, try: gcc -c filename.c gcc -o dat filename.o to compile filename.c into filename.o, then load filename.o and the library into dat.exe or: gcc -o dat filename.c to compile filename.c, then load the output and the library into dat.exe Post copies of your actual input command lines and any actual output error messages you get for future help >the variable of system are planned correct >set djgpp=c:\djgpp\djgpp.env >path c:\djgpp\bin;%PATH% -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply