ffMPEG"找不到inttypes.h"错误

Nav*_*Nav 20 ffmpeg visual-studio-2010 visual-c++

在Windows中使用Visual Studio 2010构建ffMPEG时,我遇到了inttypes.h not found错误.
由于在互联网上搜索导致我找到错误的解决方案,我想我会在这里提出正确的解决方案,以便人们可以轻松找到它.很快就会回答我自己的问题.

Nav*_*Nav 44

解决方案是下载此文件并将inttypes.h文件放在Visual Studio可以找到的位置,或放在ffMPEG所在的文件夹中common.h.如果选择后者,则必须将#include<inttypes.h>行更改为#include "inttypes.h".
这里得到了这个解决方案.

这并没有为我工作的另一个解决方案是更换#include<inttypes.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;
Run Code Online (Sandbox Code Playgroud)

这个解决方案是从这里获得的.

希望这有帮助.