“inttypes ffMPEG。h not found”错误

时间:2022-06-05 00:52:05

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.

在Visual Studio 2010中使用ffMPEG构建窗口时,我遇到了inttypes。h没有发现错误。由于在互联网上搜索导致我找到了错误的解决方案,我认为我应该在这里提出正确的解决方案,这样人们就可以很容易地找到它。很快就会回答我自己的问题。

2 个解决方案

#1


43  

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.

解决方案是下载这个文件并放置inttypes。h文件可以在Visual Studio找到它的地方,或者在ffMPEG的普通文件夹中。h所在地。如果选择后者,则必须更改#include line to #include“inttypes.h”。从这里得到这个解。 。h>

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

另一个不适合我的解决方案是替换#include 。h>

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.

希望这个有帮助。

#2


2  

#ifndef HAS_INT_TYPES

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

#endif

#1


43  

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.

解决方案是下载这个文件并放置inttypes。h文件可以在Visual Studio找到它的地方,或者在ffMPEG的普通文件夹中。h所在地。如果选择后者,则必须更改#include line to #include“inttypes.h”。从这里得到这个解。 。h>

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

另一个不适合我的解决方案是替换#include 。h>

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.

希望这个有帮助。

#2


2  

#ifndef HAS_INT_TYPES

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

#endif