delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/05:59:59

From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Am I forgetting an include or something?
Date: Sun, 19 Jan 1997 23:13:43 -0600
Organization: Greater New Orleans Free-Net
Lines: 21
Message-ID: <Pine.GSO.3.95.970119231035.224B-100000@sparkie.gnofn.org>
References: <Pine DOT GSO DOT 3 DOT 95 DOT 970119125358 DOT 28799D-100000 AT sparkie DOT gnofn DOT org>
NNTP-Posting-Host: sparkie.gnofn.org
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.3.95.970119125358.28799D-100000@sparkie.gnofn.org>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> | set djgpp=c:\djgpp\djgpp.env
> | set path=c:\djgpp\bin;%path%
> | redir -e %4.err gcc -o %4.exe -l -Wall -v %4.c
> P.S., as.exe also produces the 'o' file, I used a undelete on the TMP dir and 
> it exists, so why does ld.exe fail?

An ammendment is in order, if I change the following line:

> | gcc -o %4.exe -l -Wall -v %4.c
to:
> | gcc -c %4.exe -l -Wall -v %4.c

I get an OBJ file.  Then I run link:

> | gcc -c -l -Wall -v %4.o

And I get an executable.

Now I'm really puzzled.


- Raw text -


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