Compiler errors when specifying a target Java source file #636
-
I'm working on a JavaCPP wrapper around the nanodbc library for connecting to ODBC data sources from Java. I'm bringing the library in via a git submodule and using gradle-javacpp to build the wrapper. I'm using Windows 11 and Visual Studio 2022 Community. I'm running into a couple issues, but I'm not exactly sure how/if they are related. I have a basic mapping configured in NanodbcConfig.java. In its current state, Adding a Build log without specifying Is there something I should be doing differently to properly generated the wrapper .java file? Thanks for any guidance you can provide! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
We need to tell JavaCPP not to try to translate to variables any of those |
Beta Was this translation helpful? Give feedback.
We need to tell JavaCPP not to try to translate to variables any of those
#define
macros manually:https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#ignoring-attributes-and-macros
It's a bit tedious, but once it's done it doesn't usually take a lot of time to maintain.