I ‘ve been trying to compile FreeCad and came across the following error:
Error 422 error C2371: 'int8_t' : redefinition; different basic types c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h 17 1 SketcherGui
This error occur more than 300 times and it is related to the following line typedef signed char int8_t; which exist in the stdint.h. As you can see stdint.h is a MSVC 10 file.
In one of the files where this error occur the line is
InputStream& operator >> (int8_t& ch);
I tried to google the error but couldn’t find anything useful.
You need to post the exact error. Somewhere in there it'll tell you where the duplicates are.
int8_t is defined in stdint.h, but it's a recent addition to the Microsoft compiler, so the code may define it's own. Check if there's some kind of gate to skip the declaration.