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.
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.
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;
This solution was obtained from here.
Hope this helped.
#ifndef HAS_INT_TYPES
#ifdef HAS_C99
#include <stdint.h>
#endif
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With