[FFmpeg-cvslog] r9811 - trunk/doc/faq.texi

takis subversion
Fri Jul 27 15:40:02 CEST 2007


Author: takis
Date: Fri Jul 27 15:40:02 2007
New Revision: 9811

Log:
Add a section about C++ and extern "C" in the FAQ.


Modified:
   trunk/doc/faq.texi

Modified: trunk/doc/faq.texi
==============================================================================
--- trunk/doc/faq.texi	(original)
+++ trunk/doc/faq.texi	Fri Jul 27 15:40:02 2007
@@ -395,6 +395,14 @@ the whole libav*. If you wish, disable s
 You can also try to hack it and remove more, but if you had problems fixing
 the compilation failure then you are probably not qualified for this.
 
+ 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 @code{extern "C"}.
+
+See @url{http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.3}
+
 @section I have a file in memory / a API different from *open/*read/ libc how do i use it with libavformat?
 
 You have to implement a URLProtocol, see libavformat/file.c in FFmpeg




More information about the ffmpeg-cvslog mailing list