编译时报错
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