delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/28/23:32:56

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP ME PLEASE!!
Date: Fri, 29 Oct 1999 03:23:26 GMT
Organization: Monash Uni
Lines: 22
Distribution: world
Message-ID: <38191290.1120989@newsserver.cc.monash.edu.au>
References: <7vap1h$iij$1 AT ftp DOT curtin DOT edu DOT au>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 941167391 26944 130.194.198.138 (29 Oct 1999 03:23:11 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 29 Oct 1999 03:23:11 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 29 Oct 1999 08:17:12 +0800, "Josh Carson"
<carsonja AT ses DOT curtin DOT edu DOT au> wrote:

>I am a beginner, and when I go to compile a simple C program, I get the
>following compiler message:
>
>cannot specify -o with -c or -S and multiple compilations
>
>What is going on?

You gave the compiler both the "-o" and either the "-c" or "-S"
options. The -c and -S options both tell the compiler not to link what
it produces (ie there is no linking stage when either of these options
are given), yet the -o option specifies the executable file name (the
file that is the result of linking).

If you really want to use -c or -S, remove the -o option.

Davin.
__________________________________________________________
       *** davmac - sharkin'!! davmac AT iname DOT com ***
my programming page: http://yoyo.cc.monash.edu.au/~davmac/

- Raw text -


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