Advertisement

Error Compiling in Xcode 3.2.1 gcc 4.2

Started by April 16, 2010 01:31 AM
3 comments, last by jsol 14 years, 7 months ago
Hello I'm getting an error when trying to compile the angel script source under Xcode 3.2.1 (gcc 4.2) in "as_callfunc_ppc.cpp".

#Error:
{standard input}:22:non-relocatable subtraction expression, "_ppcArgsType" minus "address"
{standard input}:22:symbol: "_ppcArgsType" can't be undefined in a subtraction expression
{standard input}:21:non-relocatable subtraction expression, "_ppcArgsType" minus "address"
{standard input}:21:symbol: "_ppcArgsType" can't be undefined in a subtraction expression

Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

What to do here...? Thanks
I'm using "AngelScript 2.18.2"
Advertisement
This error also happens when compiling the XCode project that is distributed with the angel script SDK. Is there a way to turn off PPC?
I'm not sure why this is happening for you. I use Xcode myself once in a while and never had any problem with this. Maybe you have a newer version. I'll check that.

You can change the project settings in Xcode to not build a universal binary, that will turn off the compilation of the PPC code (unless you're on a PPC machine). You can also define the word AS_MAX_PORTABILITY that will disable all assembler code, but then you will also lose the support for native calling conventions.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I'm using the latest XCode on snow leopard, I had a explicit ppc flag in another library that I'm building AS with; turned it off for now.

This topic is closed to new replies.

Advertisement