Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 1997 19:38:44 +0930
From:      Greg Lehey <grog@lemis.com>
To:        lukas@reichardt.ch
Cc:        Doug White <dwhite@resnet.uoregon.edu>, questions@FreeBSD.ORG
Subject:   Re: a.out <-> GNU CC
Message-ID:  <19971017193844.40743@lemis.com>
In-Reply-To: <34472f6e.11976311@1.1.1.17>; from Lukas Ruf on Fri, Oct 17, 1997 at 09:27:22AM %2B0000
References:  <Pine.BSF.3.96.971016094858.2112E-100000@gdi.uoregon.edu> <34472f6e.11976311@1.1.1.17>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971017193844.40743>