Date: Fri, 17 Oct 1997 11:48:41 GMT From: lukas@reichardt.ch (Lukas Ruf) To: Greg Lehey <grog@lemis.com> Cc: questions@FreeBSD.ORG Subject: Re: a.out <-> GNU CC Message-ID: <34474b1a.19060737@1.1.1.17> In-Reply-To: <19971017193844.40743@lemis.com> References: <Pine.BSF.3.96.971016094858.2112E-100000@gdi.uoregon.edu> <34472f6e.11976311@1.1.1.17> <19971017193844.40743@lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <name>, defaulting to "a.out"). thanx in advance Lukas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34474b1a.19060737>