Advertisement

Registering a reference type

Started by August 31, 2012 02:40 AM
9 comments, last by WitchLord 12 years, 4 months ago
Alright, for some reason the compilation is being done as if for the IPhone, and probably with the cpu i386 which would explain why the native calling conventions are not turned on.

Looking at the as_config.h the only way it would detect the compilation as IPhone is if the define TARGET_OS_IPHONE is found. I don't see it on the command line you showed, but it may be provided internally. I believe LLVM has a command line option for outputting default defines, probably similar to gnuc, i.e.-dM. Try adding the argument -dM to the command line, and you should hopefully see all the predefines that the compiler automatically provides.

Did you create the XCode project yourself, or did you use the one provided in the AngelScript SDK? If you used the one provided in the AngelScript SDK, try creating a new project by yourself instead. It's possible the project in the SDK is faulty (I can't test it myself).

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

This topic is closed to new replies.

Advertisement