From owner-freebsd-questions Fri Oct 17 04:47:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA06594 for questions-outgoing; Fri, 17 Oct 1997 04:47:45 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from mail.magnet.ch (root@mail.magnet.ch [194.206.228.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA06584 for ; Fri, 17 Oct 1997 04:47:40 -0700 (PDT) (envelope-from lukas@reichardt.ch) Received: from z1wsntms (magnetdial3.magnet.ch [194.206.228.213]) by mail.magnet.ch (8.8.3/8.8.3) with SMTP id NAA14579; Fri, 17 Oct 1997 13:46:17 +0200 Received: by z1wsntms (VPOP3) with SMTP; Fri, 17 Oct 1997 13:51:22 +0200 From: lukas@reichardt.ch (Lukas Ruf) To: Greg Lehey Cc: questions@FreeBSD.ORG Subject: Re: a.out <-> GNU CC Date: Fri, 17 Oct 1997 11:48:41 GMT Organization: Reichardt Informatik AG Reply-To: lukas@reichardt.ch Message-ID: <34474b1a.19060737@1.1.1.17> References: <34472f6e.11976311@1.1.1.17> <19971017193844.40743@lemis.com> In-Reply-To: <19971017193844.40743@lemis.com> X-Mailer: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Server: VPOP3 - Registered to: Reichardt Informatik AG Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id EAA06585 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi Greg On Fri, 17 Oct 1997 19:38:44 +0930, you wrote: >For any version of a UNIX C compiler: > > cc a.o b.o c.o > >In other words, you just specify the names of the object files. If >you don't use -o, it will call the file a.out. > sorry, i have not got it. BTW: why do you specify a list of object files for "cc" ? If the default output format of a compiler/linker pair to produce an executable is ELF, how can I tell the compiler/linker pair to produce an a.out-format executable. In other words: which command line options do I have to specify to make ld link a list of object files into an executable of format a.out (its name -- I know -- is specified by -o , defaulting to "a.out"). thanx in advance Lukas