Object file extensions

Brad Roberts braddr at puremagic.com
Tue Jan 21 13:49:02 PST 2014


On 1/21/14 12:36 PM, H. S. Teoh wrote:
> On Tue, Jan 21, 2014 at 12:29:56PM -0800, Walter Bright wrote:
>> On 1/21/2014 10:38 AM, Russel Winder wrote:
>>> The tradition (AIUI) on Linux is for PIC object files to have
>>> extension .os. DMD however refuses to recognize this extension. Is this
>>> something to fix?
>>
>> Hmm, I've never heard of that tradition! And:
>>
>>      cc foo.c -c -fPIC
>>
>> generates foo.o, not foo.os (on Ubuntu).
>
> I would've thought it was .so, not .os. Perhaps a typo on the part of
> the OP?

Not for the object file coming out of the compiler.  Shared libraries are produced by the librarian 
(ld, link, etc).



More information about the Digitalmars-d mailing list