gpt4 book ai didi

c++ - 编译 Love 2D Xcode : Undefined Symbols for Architecture

转载 作者:行者123 更新时间:2023-11-28 03:34:39 25 4
gpt4 key购买 nike

当我在 xcode 中编译 c++ 时,如何让编译器识别这些“符号”。这是错误(我有一种感觉,它忽略了框架然后给出了缺少框架的错误)

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
...

(它一直在继续;错误是相似的,所以我只是抽样)

最佳答案

我发现了问题:

对导入的框架有损坏的引用(意味着框架不在 xcode 认为的位置),我只是删除它并重新链接它们,一切都编译正常

关于c++ - 编译 Love 2D Xcode : Undefined Symbols for Architecture,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11356656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com