我正在尝试将Perl绑定编译为Nvidia Management库(NVML)。当我使用makefile时,会出现以下错误:
/usr/lib/powerpc64le-linux-gnu/perl/5.22/CORE/handy.h:117:34: error: ‘bool’ undeclared (first use in this function)
#define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
/usr/lib/powerpc64le-linux-gnu/perl/5.22/CORE/handy.h:117:39: error: expected ‘:’ before numeric constant
#define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
gcc版本是:gcc(Ubuntu / IBM 5.4.0-6ubuntu1~16.04.2)5.4.0 20160609
我已经在handy.h中包含了stdbool.h文件。