macosx extern inline problem
jay.krell at cornell.edu
Tue May 25 00:23:53 CEST 2010
I don't believe the file format is the problem.
The file format is certainly complicated, so doesn't seem a.out-ish.
I think it has changed a lot at various times through the years, probably starting way back at Next, and then maybe more with 10.0, and each revision thereafter. For example "two level namespace" is from around 10.2, "rpath" is from around 10.4, etc.
Changing the compiler switches or source slightly both work.
The problem is Apple gcc 4.0.1 -std=gnu99.
> CC: jay.krell at cornell.edu; gmp-discuss at gmplib.org
> From: haberg-1 at telia.com
> To: tg at gmplib.org
> Subject: Re: macosx extern inline problem
> Date: Mon, 24 May 2010 21:10:01 +0200
> On 24 May 2010, at 20:57, Torbjorn Granlund wrote:
> >> See also http://gmplib.org/macos.html for information about some
> >> Xcode
> >> quality problems.
> > The Mac OS X native executable file format is Mach-O. Is that what
> > you
> > mean by a variant of the a.out format? - The latter is for UNIX like
> > kernels, and the for the Mach kernel.
> > Mach-O is based in the old aout format used on BSD systems in the
> > 80'ies. This wasn't a bad format at the time, System V derived
> > systems
> > used something more limited, known as COFF.
> This link says it has undergone significant changes on 10.6 with
> special load and compressions that cannot be understood on earlier
More information about the gmp-discuss