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

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.129.203
From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Djggp doesn't work
Organization: Systematic Software
Message-ID: <gdq5i1dog8lh865j2m23j7ap13tt2850kr@4ax.com>
References: <dtBUe.45005$4g5 DOT 2979297 AT news4 DOT tin DOT it>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
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,
<jashgs7 AT jkhsduer DOT it> 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

- Raw text -


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