jextract unable to find limits.h from limits.h
Ty Young
youngty1997 at gmail.com
Mon Nov 18 02:04:07 UTC 2019
Hi,
I tried generating bindings for libusb using:
jextract -t org.linux.libusb -L /usr/lib -llibusb-1.0
--record-library-path /usr/include/libusb-1.0/libusb.h -o org.linux.libusb
but am met with:
java.lang.RuntimeException: /usr/include/limits.h:124:16: fatal error:
'limits.h' file not found
Which is odd: jextract can't find the file causing the error while
reading from the file it's throwing an error about.
This is the line's code + comment:
/* Get the compiler's limits.h, which defines almost all the ISO
constants.
We put this #include_next outside the double inclusion check because
it should be possible to include this file more than once and still get
the definitions from gcc's header. */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines. */
# include_next <limits.h>
#endif
Is this a jextract bug or am I doing something wrong?
More information about the panama-dev
mailing list