0

I'm trying to compile Perl bindings to Nvidia Management library (NVML). When I use the makefile, following errors appear:

/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 version is: gcc (Ubuntu/IBM 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609

I've included stdbool.h file in handy.h.

melpomene
  • 84,125
  • 8
  • 85
  • 148
user3509540
  • 41
  • 1
  • 7

0 Answers0