[FFmpeg-devel] [PATCH] Add section about C++ and extern "C" in the FAQ

Timothy Baldridge tbaldridge
Fri Jul 27 16:34:30 CEST 2007


Is there a way to do this in the code via #define? It'd be nice if the
externs could be added automagicly.

Timothy

On 7/27/07, Panagiotis Issaris <takis.issaris at uhasselt.be> wrote:
> Hi Diego,
>
> Diego Biurrun schreef:
> > On Fri, Jul 27, 2007 at 03:11:13PM +0200, Panagiotis Issaris wrote:
> >> The attached patch does as said in $subj.
> >>
> >> --- doc/faq.texi     (revision 9810)
> >> +++ doc/faq.texi     (working copy)
> >> @@ -395,6 +395,14 @@
> >>
> >> + at section I'm using libavcodec from within my C++ application but the linker complains about missing symbols which seem to be available.
> >> +
> >> +FFmpeg is a pure C project, so to use the libraries within your C++ application
> >> +you need to explicitly state that you are using a C library. You can do this by
> >> +encompassing your FFmpeg includes using extern "C".
> >
> > @code{extern "C"}
> >
> > Commit.
>
> Done!
>
> With friendly regards,
> Takis
> --
> vCard: http://issaris.org/pi.vcf
> PGP key: http://issaris.org/pi.key
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>


-- 
"Believing in a DRM business model is like joining Star Fleet
security, putting on your red shirt, and volunteering to beam down to
the new unexplored plant with Kirk, Spock and McCoy." --   Jeremy
Allison




More information about the ffmpeg-devel mailing list