我已经开始尝试在 Xcode 4.3.2 中使用 SDL,所以我为 Mac OS X 启动了一个 Cocoa 应用程序并连接了我所有的框架:OpenGL、SDL 等。我没有 SDL_Image、SDL_Mixer 等。(我需要这些吗? ) 当我尝试编译只有 SDLmain.h 和 SDLmain.m 的项目时,我收到此错误:
Undefined symbols for architecture x86_64: "_SDL_main", referenced from: -[SDLMain applicationDidFinishLaunching:] in SDLMain.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)