[Libav-user] ld error code 1 while make

Igor R boost.lists at gmail.com
Thu May 5 10:17:31 CEST 2011


> /home/nauro/work/AllViewProject/Season_2/VPCnew/main.cpp:610: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'
> collect2: ld returned 1 exit status
> make: *** [VPCnew] Ошибка 1
> nauro at nauro:~/work/AllViewProject/Season_2/VPCnew$
> 
> Well, I don't understand what's wrong with it, because libavcodec and libavcodec-dev are installed, in main.cpp I've got #include <libavcodec/avcodec.h> And all this function are in avcodec.h...

Do you wrap #include with extern "C" {}?
Do you compile the libs and the application with the same compiler?


More information about the Libav-user mailing list