Advertisement

Link problem in OSX

Started by November 27, 2011 07:37 PM
1 comment, last by dutt 13 years, 1 month ago
I'm trying to include angelscript one of my new projects, I'm developing in QT Creator on OSX Lion. I've managed to build angelscript without problem but when I try to link to the library I ran into this:


[color="#aa0000"]Undefined symbols for architecture x86_64:
[color="#aa0000"] "CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&)", referenced from:
[color="#aa0000"] CallSystemFunction(int, asCContext*, void*)in libangelscript.a(as_callfunc.o)
[color="#aa0000"]ld: symbol(s) not found for architecture x86_64


Has anybody else seen the same problem?

[size="1"]trassel (thread lib)
That function is defined in one of the as_callfunc_*.cpp files. You need to make sure the one appropriate for you platform is included in your project and that the configurations in as_config.h is appropriate.

I'm not sure what compiler QT Creator uses, but most likely it is gnuc or a derivative. If this is correct the file you need is the as_callfunc_x64_gcc.cpp.

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

Advertisement
Yep, working fine now. Thanks a lot for the quick help :)
[size="1"]trassel (thread lib)

This topic is closed to new replies.

Advertisement