2013-03-16 86 views
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項目中收到上述錯誤,我不確定爲什麼。這是我最後一次運行程序(大約三個月前),現在不起作用。有任何想法嗎?SDL和Xcode(被忽略的SDL_image)

回答

-1

您顯然安裝了錯誤版本的SDL_image,如果您使用的是Mac OS X,則應該安裝mac version

0

得到一個32位版本 - 多數民衆贊成在這種情況下缺少。

  • 'I386 =英特爾32位'
  • 'x86_64的英特爾= 64位'