gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 12:05:01 25 4
gpt4 key购买 nike

在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com