2012-07-06 58 views
0

當我在xcode中編譯C++時,如何獲得由編譯器識別的這些「符號」。這裏的錯誤(我有一種感覺,它忽略了框架,然後給出錯誤失蹤框架)編譯愛2D Xcode:架構的未定義符號

ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/IL.framework/IL, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/Vorbis.framework/Vorbis, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/FreeType.framework/FreeType, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/Lua.framework/Lua, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/Ogg.framework/Ogg, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/physfs.framework/physfs, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/libmodplug.framework/libmodplug, missing required architecture x86_64 in file 
ld: warning: ignoring file /Developer/SDKs/MacOSX10.7.sdk/Library/Frameworks/mpg123.framework/mpg123, missing required architecture x86_64 in file 
Undefined symbols for architecture x86_64: 
    "_luaL_newstate", referenced from: 
     _SDL_main in love-33750B9883D2854D.o 
     love::thread::Thread::ThreadThread::SDL_main() in Thread.o 
    "_luaL_openlibs", referenced from: 
     _SDL_main in love-33750B9883D2854D.o 
     love::thread::Thread::ThreadThread::SDL_main() in Thread.o 
    "_lua_createtable", referenced from: 
     _SDL_main in love-33750B9883D2854D.o 
     love::luax_register_module(lua_State*, love::WrappedModule const&) in runtime.o 
     love::luax_insistglobal(lua_State*, char const*) in runtime.o 
     love::luax_insist(lua_State*, int, char const*) in runtime.o 
     _auxiliar_newclass in auxiliar.o 
     _global_select in select.o 
     _make_assoc in select.o 
     ... 
    "_lua_pushstring", referenced from: 
     _SDL_main in love-33750B9883D2854D.o 
     love::luax_register_type(lua_State*, char const*, luaL_Reg const*) in runtime.o 
     _auxiliar_newclass in auxiliar.o 
     _auxiliar_tostring in auxiliar.o 
     _auxiliar_add2group in auxiliar.o 
     _auxiliar_getgroupudata in auxiliar.o 
     _global_create in tcp.o 
     ... 
    "_lua_rawseti", referenced from: 
     _SDL_main in love-33750B9883D2854D.o 
     love::luax_table_insert(lua_State*, int, int, int) in runtime.o 
     love::physics::box2d::Body::getFixtureList(lua_State*) const in Body-3A4BFE6EB3B8CF74.o 
     love::physics::box2d::World::getBodyList(lua_State*) const in World.o 
     love::physics::box2d::World::getJointList(lua_State*) const in World.o 
     love::physics::box2d::World::getContactList(lua_State*) const in World.o 
     _luaopen_love in love-9091511F51D4A764.o 
     ... 

(它的推移和;錯誤是相似的,所以我只是採樣)

+0

看起來有點奇;爲什麼你的SDK中有'Lua','Ogg'等?我沒有在我的OSX 10.7 SDK中使用它們。 – trojanfoe 2012-07-06 06:08:34

+0

,因爲它們是love2d的依賴關係,我只是將它們導入到項目 – ExceptionSlayer 2012-07-06 06:10:29

+1

而它(XCode?)將框架移入SDK中? – trojanfoe 2012-07-06 06:11:07

回答

2

我發現問題:

有已導入到框架斷開的引用(意爲框架沒有在地方的Xcode以爲他們是),我只是刪除了和重新鏈接它們,一切編譯罰款

相關問題