ffmpeg遇到inttypes.h找不到

 

vs2012報錯:沒法打開包括文件:「inttypes.h」: No such file or directoryui

解決方法:file

一、刪除<inttypes.h>方法

二、接着在下面添加以下代碼段:di

#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)文件

# define CONFIG_WIN32

#endif

#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(EMULATE_INTTYPES)

# define EMULATE_INTTYPES

#endif

#ifndef EMULATE_INTTYPES

# include <inttypes.h>

#else

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;

# ifdef CONFIG_WIN32

typedef signed __int64 int64_t;

typedef unsigned __int64 uint64_t;

# else /* other OS */

typedef signed long long int64_t;

typedef unsigned long long uint64_t;

# endif /* other OS */

#endif

相關文章
相關標籤/搜索