ffMPEG "inttypes.h not found" error

33,817

Solution 1

The solution is to download this file and place the inttypes.h file either where Visual Studio can find it, or in the folder where ffMPEG's common.h is located. If you choose the latter, you'll have to change the #include<inttypes.h> line to #include "inttypes.h".
Had got this solution from here.

Another solution which didn't work for me is to replace the #include<inttypes.h> with

typedef signed char  int8_t;
typedef signed short int16_t;
typedef signed int   int32_t;
typedef unsigned char  uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int   uint32_t;
typedef signed long long   int64_t;
typedef unsigned long long uint64_t;

This solution was obtained from here.

Hope this helped.

Solution 2

#ifndef HAS_INT_TYPES

#ifdef HAS_C99
  #include <stdint.h>
#endif

#endif
Share:
33,817

Related videos on Youtube

Nav
Author by

Nav

Updated on July 09, 2022

Comments

  • Nav
    Nav almost 2 years

    While using the ffMPEG builds in Windows with Visual Studio 2010, I encountered the inttypes.h not found error.
    Since searching through the internet led me to wrong solutions, I thought I'd put up the right solution here so that people can find it easily. Will be answering my own question soon.

  • Chris
    Chris over 8 years
    As a note in my version of ffMPEG I also had a include for this in pixdesc.h as well. Additionally if you are only have the outer include folder listed in included directories it will be #include "libavutil/inttypes.d" instead.