A complete error log is attached.
In AIX, there is a system header file named standards.h and cppcheck also has a header file with the same name.
The system header defines certain macros based on which types like int8_t,int16_t,etc are defined in stdint.h header file.
During the compilation, standards.h provided by cppcheck takes precedence and system header file is not included. This results in the above errors.
To resolve this, we have renamed the cppcheck provided "standards.h" to "cppcheckstd.h" and replaced #include "standards.h" to #include "cppcheckstd.h" in the source code wherever necessary.
TRUE and FALSE are macros that are defined in AIX system header file. So, we have renamed TRUE and FALSE to True and False respectively. This fixes the above issue.
The patches for both the issues are attached. Please let me know your suggestions on these changes.
Hi All,
I am building cppcheck in AIX using gcc compiler. The compilation fails with the following errors:
A complete error log is attached.
In AIX, there is a system header file named standards.h and cppcheck also has a header file with the same name.
The system header defines certain macros based on which types like int8_t,int16_t,etc are defined in stdint.h header file.
During the compilation, standards.h provided by cppcheck takes precedence and system header file is not included. This results in the above errors.
To resolve this, we have renamed the cppcheck provided "standards.h" to "cppcheckstd.h" and replaced
#include "standards.h"
to#include "cppcheckstd.h"
in the source code wherever necessary.2.
TRUE and FALSE are macros that are defined in AIX system header file. So, we have renamed TRUE and FALSE to True and False respectively. This fixes the above issue.
The patches for both the issues are attached. Please let me know your suggestions on these changes.
Last edit: Reshma V Kumar 5 days ago