visual-studio-2010 - ffMPEG "inttypes.h not found"错误

标签 visual-studio-2010 visual-c++ ffmpeg

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

最佳答案

解决办法是下载this file并放置 inttypes.h文件可以在 Visual Studio 可以找到的位置,或者在 ffMPEG 的 common.h 所在的文件夹中位于。如果选择后者,则必须更改 #include<inttypes.h>行至 #include "inttypes.h" .
已从 here 获得此解决方案.

另一个对我不起作用的解决方案是替换 #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;

此解决方案来自 here .

希望这有帮助。

关于visual-studio-2010 - ffMPEG "inttypes.h not found"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13266868/

相关文章:

facebook - 如何使用 ffmpeg 为 Facebook 生成循环动画 gif

javascript - 浏览器 MediaRecorder API - 视频控件不工作/标题设置不正确?

winforms - 拖放如何影响 Windows 窗体应用程序中的内存使用?

visual-studio-2010 - 此断点当前不会被命中,源代码与原始代码不同(即使经过清理/重建)

c++ - CreateWindowEx 的资源

c++ - 如何防止clang自动包含头文件?

c - libavcodec/h263data.h 的这两部分到底做了什么?

visual-studio-2010 - 鼠标处理 : printing pixel location

c++ - Qt ui 文件不编译成 C++ 头文件

c++ - MSVC : union vs. 具有内联友元运算符的类/结构