[Libav-user] Undefined reference to `av_opt_set' when linking the FFMPEG-library with -lx264-flag

Anders Branderud anders.branderud at gmail.com
Sun Mar 18 17:45:51 CET 2012


Using 'Extern C' solved many of the problems, however one code line is
still causing an error.

Here follows the compilation and the error:
Invoking: GCC C++ Linker
g++  -o "videofecencode"  ./sockets/PracticalSocket.o
./sockets/UDPEchoClient.o ./sockets/UDPEchoServer.o
./openfeclib/lib_stable/ldpc_staircase/of_rand.o  ./FecFunctionality.o
./videofecencoder.o   -lm -lx264 -lpthread -lavformat -lavcodec -lavutil
./videofecencoder.o: In function `video_encode_example':
undefined reference to `av_opt_set'

I followed these instructions in order to install FFMPEG and X264:

Here is my code:

I appreciate help!

-- *Kind regards, Anders

[Personal blog] Will of the
Creator<http://www.proofexistencegod.com/will-of-god/will-of-god/>  :
reasons - based on scientific premises - for the existence of a Super
intelligent and Orderly Creator and that He hasn't left His sapient
creatures without an Instruction Manual - Torah ['books of Moses'] - to
ascertain, and aspire to, His purpose.

[Company] Anders Branderud IT Solutions - www.abitsolutions.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120318/c6c8e24e/attachment.html>

More information about the Libav-user mailing list