delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/09/10/10:30:09

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sat, 10 Sep 2005 09:17:36 -0500
Date: Sat, 10 Sep 2005 10:18:00 -0400
From: Joe Wright <jwright AT comcast DOT net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Djggp doesn't work
References: <dtBUe.45005$4g5 DOT 2979297 AT news4 DOT tin DOT it>
In-Reply-To: <dtBUe.45005$4g5.2979297@news4.tin.it>
Message-ID: <guidnTkfUoWddr_eRVn-1Q@comcast.com>
Lines: 26
NNTP-Posting-Host: 69.143.13.12
X-Trace: sv3-MqlUFASBII29UF/fPzgmRWaEWUp0NLU5Sp4XACak4DQslX2+l41hUAagGYp2uU4Aalc7irMrBXNCCFw!CpcAlIg88chvqHLj3wEu0YsdvD3+9mSFfJIs6R0o/CCwFcHQGaZ99cNU5fdIlAxMfp3D94+LVgu0!QA==
X-Complaints-To: abuse AT comcast DOT net
X-DMCA-Complaints-To: dmca AT comcast DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

jashgs7 AT jkhsduer DOT it wrote:
> Hi all
> I have a problem   with djgpp gcc4.0.1 on win2003
> when I compile with gcc - c filename.c and all to place
> when I try to compile with the option  -o
> gcc  myprog.exe -o myprog.o
> 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
> you know me to say the motive
> the variable of system are planned correct
> set djgpp=c:\djgpp\djgpp.env
> path c:\djgpp\bin;%PATH%
> Thanks

It's order dependent:

gcc -c myprog.c  /* creates myprog.o */
gcc myprog.o -o myprog.exe

The output file name must follow the -o option flag.
-- 
Joe Wright
"Everything should be made as simple as possible, but not simpler."
                     --- Albert Einstein ---

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019