diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-09-10 10:23:50 -0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-09-10 15:21:22 -0400 |
commit | d162994a81a311a8dd212a50a2d2ad2b088df97f (patch) | |
tree | 0ed5b900d49c35c6c0c8f51e73d7c1999073abd5 /doc | |
parent | 8bfea4ab4e2cb32bc7bf6f697ee30a238c65d296 (diff) | |
download | ffmpeg-d162994a81a311a8dd212a50a2d2ad2b088df97f.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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/faq.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/faq.texi b/doc/faq.texi index 42a135c429..affe88b813 100644 --- a/doc/faq.texi +++ b/doc/faq.texi @@ -440,6 +440,11 @@ encompassing your Libav 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 |