Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SDL和Xcode(忽略SDL_映像)_Xcode_Sdl_Undefined Symbol_Sdl Image - Fatal编程技术网

SDL和Xcode(忽略SDL_映像)

SDL和Xcode(忽略SDL_映像),xcode,sdl,undefined-symbol,sdl-image,Xcode,Sdl,Undefined Symbol,Sdl Image,我在SDL项目中遇到了上述错误,我不知道为什么。上次我运行这个程序时(大约三个月前),它还在工作,现在它不工作了。有什么想法吗?您显然安装了错误版本的SDL_映像,如果您使用的是Mac OS X,您应该安装 获取32位版本——这就是本例中缺少的内容 “i386=英特尔32位” “x86_64=英特尔64位” ld: warning: ignoring file /Library/Frameworks/SDL_image.framework/SDL_image, file was b

我在SDL项目中遇到了上述错误,我不知道为什么。上次我运行这个程序时(大约三个月前),它还在工作,现在它不工作了。有什么想法吗?

您显然安装了错误版本的SDL_映像,如果您使用的是Mac OS X,您应该安装

获取32位版本——这就是本例中缺少的内容

  • “i386=英特尔32位”
  • “x86_64=英特尔64位”
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