It's work, thanks you Ronald 2011/9/9 Ronald S. Bultje <[email protected]>
> Hi, > > On Fri, Sep 9, 2011 at 1:52 PM, Miguel Angel Ponce > <[email protected]> wrote: > > Hi, > > > > I want compile with g++ the api-example.c but I can't do this. > > My command line is : > > > > g++ api-example.c -o api-example -lavcodec -D__STDC_CONSTANT_MACROS > > -L/usr/local/lib > > Use gcc, not g++. Libav is C, not C++. > > If you want to use Libav in C++ software, include the headers like this: > > extern "C" { > #include <libavcodec/avcodec.h> > } > > Ronald > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel >
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
