[FFmpeg-user] Qns regarding compiling c++ code with ffmpeg

Jun Jie Pang junjiepang at gmail.com
Sun Oct 13 16:50:26 CEST 2013


Hi,
  I have installed ffmpeg on centOS according to
https://trac.ffmpeg.org/wiki/CentosCompilationGuide.
However, when I try to compile the code, it gives me multiple "  undefined
reference to  ....".
I have looked up on this problem, already tried and implemented a few
things:

1) Adding: extern "C" { #includes ...}
2) Compiling with path to lib: $gcc prog prog.cpp -L/path/to/lib -lavcodec
-lavformat -lavutil

However, I still couldn't compile the example code. I'm at a lost here.
Could any kinds souls help look into my problem ?

Thank you,
Pang Jun Jie


More information about the ffmpeg-user mailing list