I'm setting up a new test PC, to test my software running on Windows 10. I've installed Visual Studio 2012 on this PC, along with some third-party software. When I run the software on this PC, I get the following error:
C:\Program Files\MATLAB\MATLAB Component Runtime\v77\extern\include\mclmcr.h(217): error C2371: 'int32_t' : redefinition; different basic types
on the following piece of code:
#ifdef _WIN32
#if ULONG_MAX == 0xffffffff
typedef long int32_t; // line 217
#else
typedef int int32_t;
#endif
#endif
If I look around for int32_t
in my project, I can see that it is indeed defined multiple times.
However, running the exact same project on my developer PC running Windows 7 runs without any issues. Anybody have any ideas what might cause this?
EDIT: Found it, somebody edited the include used on the development computer to:
#ifdef _WIN32
#if ULONG_MAX == 0xffffffff
typedef int int32_t; // line 217
#else
typedef int int32_t;
#endif
#endif
User contributions licensed under CC BY-SA 3.0