开发者社区 问答 正文

关于编译idoubs出错:Apple Mach-O Linker Error

Undefined symbols for architecture i386:
 "_th_comment_clear", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_comment_init", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_encode_alloc", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_encode_ctl", referenced from:
 _submit_stats in libavcodec.a(libtheoraenc.o)
 _get_stats in libavcodec.a(libtheoraenc.o)
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_encode_flushheader", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_encode_free", referenced from:
 _encode_close in libavcodec.a(libtheoraenc.o)
 "_th_encode_packetout", referenced from:
 _encode_frame in libavcodec.a(libtheoraenc.o)
 "_th_encode_ycbcr_in", referenced from:
 _encode_frame in libavcodec.a(libtheoraenc.o)
 "_th_info_clear", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 "_th_info_init", referenced from:
 _encode_init in libavcodec.a(libtheoraenc.o)
 ld: symbol(s) not found for architecture i386
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

以上是编译idoubs目标时候的错误,用的Xcode6.1,添加了一些框架,感觉不应该是缺少框架了吧,请各位大神们赐教啊!!!

展开
收起
爵霸 2016-03-17 09:24:15 2456 分享 版权
1 条回答
写回答
取消 提交回答
  • 【libtheoraenc】跟这个名字相关得文件,是不是没放到程序里~编译的时候缺少文件了~先看看有没有引入,然后编译的配置里再看看有没有

    2019-07-17 19:04:26
    赞同 展开评论
问答地址: