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 プロジェクトで上記のエラーが発生しましたが、その理由がわかりません。前回プログラムを実行したとき (約 3 か月前) は機能していましたが、現在は機能しません。何か案は?

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 に答える