请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

编译报错:Undefined symbols for architecture x86_64

编译时报错
Undefined symbols for architecture x86_64:
"_av_find_best_stream", referenced from:
_main in extract_audio-1eb8fc.o
"_av_guess_format", referenced from:
_main in extract_audio-1eb8fc.o
"_av_interleaved_write_frame", referenced from:
_main in extract_audio-1eb8fc.o
"_av_packet_unref", referenced from:
_main in extract_audio-1eb8fc.o
"_av_read_frame", referenced from:
_main in extract_audio-1eb8fc.o
"_av_write_trailer", referenced from:
_main in extract_audio-1eb8fc.o
"_avcodec_parameters_copy", referenced from:
_main in extract_audio-1eb8fc.o
"_avformat_alloc_context", referenced from:
_main in extract_audio-1eb8fc.o
"_avformat_close_input", referenced from:
_main in extract_audio-1eb8fc.o
"_avformat_new_stream", referenced from:
_main in extract_audio-1eb8fc.o
"_avformat_open_input", referenced from:
_main in extract_audio-1eb8fc.o
"_avio_close", referenced from:
_main in extract_audio-1eb8fc.o
"_avio_open2", referenced from:
_main in extract_audio-1eb8fc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我用的是mac

正在回答 回答被采纳积分+3

1回答

李超 2022-12-13 02:58:27

用的xcode?库导入了吗?

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信