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 2 of 5 Topic 2159 of 2233
Post > Topic >>

Re: Rebuilding CW libs: math.h error

by Howard Hinnant <howard.hinnant@[EMAIL PROTECTED] > Aug 16, 2006 at 10:04 PM

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
 




 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:13:15 PST 2009.