[Ffmpeg-devel] [PATCH] Missing "inttypes.h" on windows

Alexander Strasser eclipse7
Sat Dec 10 09:55:47 CET 2005

Diego Biurrun wrote:
> On Sun, Nov 06, 2005 at 07:43:12PM +0100, Fredrik Orderud wrote:
> > Neither the Microsoft windows platform SDK nor Visual Studio ships with the 
> > "inttypes.h" header. This leads to compile errors when using ffmpeg DLLs in 
> > in visual-studio projects, unless EMULATE_INTTYPES is defined.
> > 
> > I propose automatically defining EMULATE_INTTYPES in "libavutil/common.h" 
> > for all windows-systems, except cygwin and mingw. This would simplify usage 
> > of ffmpeg libraries on windows computers.
> ./configure should detect your lack of inttypes.h and EMULATE_INTTYPES
> should be #defined in config.h.  Have you tried #including config.h in
> libavutil/common.h?

  No, he is using the DLLs/headers in a Visual Studio Project, so he is
on it's own basically. The time he configured inttypes.h was available
in mingw environment.
  And if he would continue using mingw/msys as build environment and gcc
as compiler he would still have inttypes.h.

  IMHO the solution is simply that people takin it to another build
environment do the extra work to define EMULATE_INTTYPES if they
don't have it. This is also described in the documentation for using
libav* with Visual C++. Maybe others think different...

  Alex (beastd)

More information about the ffmpeg-devel mailing list