ffMPEG “inttypes.h not found” error

前端 未结 2 1944
梦谈多话
梦谈多话 2021-01-01 14:22

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 solu

相关标签:
2条回答
  • 2021-01-01 15:00

    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.

    0 讨论(0)
  • 2021-01-01 15:15
    #ifndef HAS_INT_TYPES
    
    #ifdef HAS_C99
      #include <stdint.h>
    #endif
    
    #endif
    
    0 讨论(0)
提交回复
热议问题