From owner-freebsd-questions Fri Oct 17 03:09:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA03012 for questions-outgoing; Fri, 17 Oct 1997 03:09:34 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA03001 for ; Fri, 17 Oct 1997 03:09:15 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id TAA29895; Fri, 17 Oct 1997 19:38:44 +0930 (CST) Message-ID: <19971017193844.40743@lemis.com> Date: Fri, 17 Oct 1997 19:38:44 +0930 From: Greg Lehey To: lukas@reichardt.ch Cc: Doug White , questions@FreeBSD.ORG Subject: Re: a.out <-> GNU CC References: <34472f6e.11976311@1.1.1.17> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34472f6e.11976311@1.1.1.17>; from Lukas Ruf on Fri, Oct 17, 1997 at 09:27:22AM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Oct 17, 1997 at 09:27:22AM +0000, Lukas Ruf wrote: > On Thu, 16 Oct 1997 09:50:20 -0700 (PDT), you wrote: > >> On Thu, 16 Oct 1997, Lukas Ruf wrote: >> >>> Is there a possibility to link OBJs to a.out using ld / gcc ?? >> >> Do you mean DOS .OBJ's? No, the object format is completely different. > > I do not mean DOS .OBJs by writing OBJ. I use these three characaters > as a short form of Object Format. Confusing, isn't it? It would have been so much easier just to say 'object files'. >> If you mean, can FreeBSD compile to a.out format from source, yes, we >> haven't adopted ELF exclusively yet. > > I thank you a lot for this nice answer -- but how can I create a.out ? It's the default name. > Could you please give me the solution for gcc 2.7.x and ld ?? 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. Greg