老师,视频4:00这部分,我编译的时候报这样的错,请问是什么原因呢?怎么解决?
[root@web-server 5_7]# gcc -g -o ExtraAudio extraAudio.c -I /usr/local/ffmpeg/include -L /usr/local/ffmpeg/lib -l avutil -l avformat
extraAudio.c: In function ‘main’:
extraAudio.c:8:3: warning: ‘av_register_all’ is deprecated (declared at /usr/local/ffmpeg/include/libavformat/avformat.h:2050) [-Wdeprecated-declarations]
av_register_all();
^
/usr/bin/ld: /tmp/ccMLtiXG.o: undefined reference to symbol 'av_packet_unref@@LIBAVCODEC_58'
/usr/local/ffmpeg/lib/libavcodec.so.58: error adding symbols: DSO missing from command line