• 13
• 15
• 27
• 9
• 9

Error Compiling in Xcode 3.2.1 gcc 4.2

This topic is 2887 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

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

Share on other sites
I'm using "AngelScript 2.18.2"

Share on other sites
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?

Share on other sites
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.