xcode Undefined symbols for architecture i386:
2013-10-05 17:44
573 查看
Undefined symbols for architecture i386:
"lua_sethook(lua_State*, void (*)(lua_State*, lua_Debug*), int, int)", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
"lua_gethookmask(lua_State*)", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
因为我在导入lua.h头文件没有 使用
extern "C" {
#include "lua.h"
}
的方式。
加上 extern "C" {} 就ok了
"lua_sethook(lua_State*, void (*)(lua_State*, lua_Debug*), int, int)", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
"lua_gethookmask(lua_State*)", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
因为我在导入lua.h头文件没有 使用
extern "C" {
#include "lua.h"
}
的方式。
加上 extern "C" {} 就ok了
相关文章推荐
- 如何解决XCODE中错误: Undefined symbols for architecture i386 error
- XCode 6.4编译错误----Undefined symbols for architecture i386: "_fwrite$UNIX2003"
- Undefined symbols for architecture i386 (Xcode)
- 解决Xcode 的 undefined symbols for architecture i386 问题
- solve xcode Undefined symbols for architecture i386:"_OBJC_CLASS_$_SKPSMTPMessage", referenced from
- Xcode:Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from: error
- Xcode Undefined symbols for architecture i386 error
- 如何解决XCODE中错误: Undefined symbols for architecture i386 error
- Undefined symbols for architecture i386
- Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
- Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
- Undefined symbols for architecture i386:和"_OBJC_CLASS_$_xx", referenced from:问题解决方法
- Xcode中 xx duplicate symbols for architecture i386错误提示
- Undefined symbols for architecture i386:的解决方案
- Xcode编译Undefined symbols for architecture xxx 错误总结
- 錯誤訊息 Undefined symbols for architecture i386:
- Xcode调用旧版本库出现Undefined symbols for architecture x86_64: ld: symbol(s) not found for architecture x86_64
- Undefined symbols for architecture i386或者armv7: “_OBJC_CLASS_$_XXX
- Undefined symbols for architecture i386:的解决方案
- Undefined symbols for architecture i386: