|
环境:mac os x 10.10.1,Qt 5.3.1(qt-opensource-mac-x64-clang-5.3.1.dmg),xcode6
现在代码里需要使用Carbon库的一些函数(GetKeys()等),所以.pro里添加了"LIBS += -framework Carbon",.cpp里添加了"#include <Carbon/Carbon.h>"
编译ok,但在链接时报错,Undefined symbols for architecture x86_64:
"_GetKeys", referenced from:
my_get_keys() in libxxx.a(xxx.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
有高手知道原因吗 谢谢
|
|