[Libav-user] Linking with libav*
Gonzalo Garramuño
ggarra13 at gmail.com
Tue Aug 13 15:24:23 EEST 2019
El 13/8/19 a las 09:11, Simon Brown escribió:
>
>
> 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.
>
Make sure you include the libav.... .h files with an extern "C" guard, like:
extern "C" {
#include "libavutil/avutil.h"
#include "libavformat/avformat.h"
}
That should make all symbols visible without mangling them.
--
Gonzalo Garramuño
More information about the Libav-user
mailing list