Djggp doesn't work

Djggp doesn't work

Post by jashgs » Sun, 11 Sep 2005 22:46:49


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
 
 
 

Djggp doesn't work

Post by Joe Wrigh » Sun, 11 Sep 2005 23:18:00


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 ---

 
 
 

Djggp doesn't work

Post by Brian Ingl » Sun, 11 Sep 2005 23:26:31

On Sat, 10 Sep 2005 13:46:49 GMT in comp.os.msdos.djgpp,



Your problem is not reading the manual -- type "info gcc"


creates an object file filename.o


option -o specifies the name of the output file, not input object
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


--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada

XXXX@XXXXX.COM (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
 
 
 

Djggp doesn't work

Post by jashgs » Mon, 12 Sep 2005 00:11:33

[...]

Thanks at all