未找到ffMPEG“inttypes.h”错误 [英] ffMPEG "inttypes.h not found" error

查看:253
本文介绍了未找到ffMPEG“inttypes.h”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2010在Windows中使用ffMPEG构建时,遇到了inttypes.h找不到错误。

由于通过互联网搜索导致我错误的解决方案,我以为我会放弃这里的正确解决方案让人们可以轻松找到它。将很快回答我自己的问题。

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可以找到的地方放置 inttypes.h 文件,或ffMPEG的 common.h 所在的文件夹中。如果你选择后者,你必须将#include< inttypes.h> 行更改为 #includeinttypes.h code>。

这里

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.

另一个不适用于我的解决方案是将#include< inttypes.h> / p>

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;

此解决方案来自这里

希望这有帮助。

这篇关于未找到ffMPEG“inttypes.h”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆