Idea: I expect something is defining bool or _Bool as a macro evaluating to int. This issue has been reported in CDRIVER-5629. I can reproduce the error if I manually add a #define bool int around the code causing the error.
The contents of stdbool.h in my install defines bool as _Bool (in path C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\stdbool.h):
#define bool _Bool
Does stdbool.h on your machine differ? Or is something else possibly defining bool or _Bool as an int?
1 Like