<div dir="ltr">I have a modified version of the demuxing_decoding.c program (with ffmpeg from the latest git head), that I copied into a C++ file (to link it with other software that requires C++).  The program compiles, but when linking it fails to find the libraries, so produces undefined references to all the av calls that I make.<div><br></div><div>My compile and link script is:</div><div>gcc -o demux_decode demux_decode.cpp -L/usr/local/lib -lavformat .... </div><div>(sorry, my VM has crashed and I can't copy/paste at the moment)</div><div><br></div><div>Is there any issue linking C libraries with C++?  Is there anything else I should be doing?  I had assumed it was a "shared-object" problem, and rebuilt everything with --enable-shared set, but that hasn't solved it.</div><div><br></div><div>Any advice greatly appreciated,</div><div><br></div><div>Simon</div></div>