Browse Source

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 d162994a81)
tags/n0.8.4
Luca Barbato Michael Niedermayer 14 years ago
parent
commit
b70a37f854
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      doc/faq.texi

+ 5
- 0
doc/faq.texi View File

@@ -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


Loading…
Cancel
Save