aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-27 13:40:02 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-27 13:40:02 +0000
commit4cb3aa09fa0fc69ddfd34f7a3144afc575875c5a (patch)
tree0b41ead5a662545ca6cbc4eead0dd933fc30ed60 /doc
parent6b90f8e04a1125715c07e30f10e63a23b011b698 (diff)
downloadffmpeg-4cb3aa09fa0fc69ddfd34f7a3144afc575875c5a.tar.gz
Add a section about C++ and extern "C" in the FAQ.
Originally committed as revision 9811 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r--doc/faq.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/faq.texi b/doc/faq.texi
index 1aeb5136ce..0cafd2faf4 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -395,6 +395,14 @@ the whole libav*. If you wish, disable some parts with configure switches.
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.
+@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