ld: warning: ignoring file /Library/Frameworks/SDL_image.framework/SDL_image, file was
built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0
0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386):
/Library/Frameworks/SDL_image.framework/SDL_image
Undefined symbols for architecture i386:
"_IMG_Load", referenced from:
Image::Image(char const*)in main.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
我在SDL项目中遇到上述错误,我不确定原因。它是我最后一次运行程序(大约三个月前),现在它不起作用。有什么想法吗?
答案 0 :(得分:0)
得到一个32位版本 - 这就是在这种情况下丢失的。
答案 1 :(得分:-1)
您显然安装了错误版本的SDL_image,如果您使用的是Mac OS X,则应安装mac version。