aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-09-10 10:23:50 -0400
committerMichael Niedermayer <michaelni@gmx.at>2011-09-21 18:02:54 +0200
commitb70a37f854df8b61be2055df352dfec40defce95 (patch)
tree15f39f9009bda9ba5d861fe2f9c0b8137af7a263
parent812a4a5813c447e4fdb6b6a46462f1f34f539c51 (diff)
downloadffmpeg-b70a37f854df8b61be2055df352dfec40defce95.tar.gz
doc: explain __STDC_CONSTANT_MACROS in C++
In order to build C++ programs using libav you need -D__STDC_CONSTANT_MACROS appened to the CXXFLAGS. (cherry picked from commit d162994a81a311a8dd212a50a2d2ad2b088df97f)
-rw-r--r--doc/faq.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/faq.texi b/doc/faq.texi
index 225f139b3c..daa4615a3c 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -447,6 +447,11 @@ 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'm using libavutil from within my C++ application but the compiler complains about 'UINT64_C' was not declared in this scope
+
+Libav is a pure C project using C99 math features, in order to enable C++
+to use them you have to append -D__STDC_CONSTANT_MACROS to your CXXFLAGS
+
@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 @file{libavformat/file.c} in