0
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 项目中遇到了上述错误,我不确定为什么。我上次运行该程序时(大约三个月前)它正在工作,但现在它不起作用。有任何想法吗?

4

2 回答 2

0

获得 32 位版本——这就是这种情况下缺少的东西。

  • 'i386 = 英特尔 32 位'
  • 'x86_64 = 英特尔 64 位'
于 2013-03-17T15:59:55.950 回答
-1

您显然安装了错误版本的 SDL_image,如果您使用的是 Mac OS X,您应该安装mac version

于 2013-03-17T15:21:04.360 回答