nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
504 stars 108 forks source link

Error when JNAerating LLVM #96

Open abhijangda opened 9 years ago

abhijangda commented 9 years ago

Hello,

I am JNAerating LLVM headers. And I am getting these errors:

/usr/include/sys/cdefs.h:270:45: error: Unexpected operator ? /usr/include/sys/cdefs.h:270:61: error: missing ) in expression /usr/include/sys/cdefs.h:270:61: error: missing ) in expression /usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:60: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:61: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:71: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:73: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:73: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:85: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:85: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:86: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:86: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:87: warning: Unexpected nonwhite token /usr/include/sys/cdefs.h:270:87: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:31:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token /usr/include/bits/wchar.h:33:52: warning: Unexpected nonwhite token /usr/include/llvm/Support/DataTypes.h:43:1: error: #error "Must #define STDC_LIMIT_MACROS before #including Support/DataTypes.h" /usr/include/llvm/Support/DataTypes.h:46:1: error: #error "Must #define STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" /usr/include/c++/4.9.2/bits/c++0x_warning.h:11:18: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

My system has Fedora 21 with LLVM 3.5 and JNA 4.1.0. I tried the following command option:

java -jar jnaerator-0.12-shaded.jar -I/usr/include/llvm -I/usr/include/c++/4.9.2/x86_64-redhat-linux/ -I/usr/include/linux -package llvm -library /usr/include/llvm/Analysis/B*.h -mode Directory

You can see that the jnaerator version is 0.12-shaded.

Also, when I try with -std=c++11 option jnaerator gives me error.

Please help me out here.

Thanks,

Abhinav

mchalupa commented 7 years ago

Hi,

following this problem (which I ran into too), is there any plan to support C++11?

Thanks, Marek

cyu021 commented 5 years ago

any update on this issue?