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,添加了一些框架,感覺不應該是缺少框架了吧,請各位大神們賜教啊!!!
【libtheoraenc】跟這個名字相關得文件,是不是沒放到程序裡~編譯的時候缺少文件了~先看看有沒有引入,然後編譯的配置裡再看看有沒有