Talk About Network

Google





Mac > Code warrior for Mac > Re: Rebuilding ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 2159 of 2233
Post > Topic >>

Re: Rebuilding CW libs: math.h error

by Howard Hinnant <howard.hinnant@[EMAIL PROTECTED] > Aug 21, 2006 at 08:03 PM

> 
> - Dave
> 
> Howard Hinnant wrote:
> > In article <1155745183.863416.201800@[EMAIL PROTECTED]
>,
> >  "Robert" <justnacl@[EMAIL PROTECTED]
> wrote:
> >
> > > We still build our older toolkit with CW on PPC macs and recently
> > > upgraded to Xcode 2.4. When rebuilding the CW libraries and
> > > pre-compiled headers we got an error:
> > >
> > > CodeWarrior gives a "type cannot be made with a global register
> > > variable" error about the __asm("_scalb$UNIX2003" ) construct on
line
> > > 647 of math.h in Xcode 2.4.  I show the relevant lines of math.h
from
> > > 2.3 and 2.4 below. Although the BuildLibraries.mcp projects built,
when
> > > I tried to build the
> > > Build.MacOSX.mcp->BuildMacOSXSup****t.mcp->MacHeadersMach-O.mcp
> > > precompiled headers, it gave the math.h error about 18 times.  This
did
> > > not stop the rest of the build, but that may be because I already
had
> > > libraries.
> > >
> > > We are running MacOS 10.4.7 on a G5 iMac.
> > >
> > > Anyone seen this? Have a fix? It would be nice if Apple kept stuff
out
> > > of the standard headers that broke other compilers (obsolete or
not).
> >
> > Inspect your access paths preference panel.  Ensure that the order of
> > your access paths is:
> >
> > {Compiler}MSL/MSL_C
> > {OS X Volume}usr/include
> > 
> > and not vice-versa.
> > 
> > -Howard

In article <1156190353.986918.263710@[EMAIL PROTECTED]
>,
 dwhipps@[EMAIL PROTECTED]
 wrote:

> We've experienced this same error. Of course, you can avoid it by
> building against the "10.4 SDK" but that doesn't help you if you want
> to build against the system headers.
> 
> Also, I tried the fix about ordering the access paths and received the
> discouraging but descriptive error:
> 
> "#error You must have the non-MSL C header file access path before the
> MSL access path"
> 
> ... in the "stddef.h" MSL header.
> 
> I tried building against the Mac OS X10.5 developer preview system
> headers, and received similar errors.
> 
> Anyone know what we can do here?

Try putting:

#if !__option(precompile)
#include "MSLCarbonPrefix.h" /* was "Prefix file" */
#endif

in your preprocessing panel.  This should be set up for you in Mach-O 
stationary.

-Howard
 




 5 Posts in Topic:
Rebuilding CW libs: math.h error
"Robert" <ju  2006-08-16 09:19:43 
Re: Rebuilding CW libs: math.h error
Howard Hinnant <howard  2006-08-16 22:04:37 
Re: Rebuilding CW libs: math.h error
dwhipps@[EMAIL PROTECTED]  2006-08-21 12:59:14 
Re: Rebuilding CW libs: math.h error
Howard Hinnant <howard  2006-08-21 20:03:55 
Re: Rebuilding CW libs: math.h error
"Robert" <ju  2006-08-22 11:37:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 17:47:30 PST 2009.