bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.49k stars 583 forks source link

How can I reach the class like class #define XXX{} ? #522

Closed JinXingJX closed 2 years ago

JinXingJX commented 3 years ago

c++ code : image

java code: image

when i using cmd : java -jar javacpp-1.5.5.jar TerrainTile.java error occur: Exception in thread "main" java.lang.ClassNotFoundException

saudet commented 3 years ago

We need to skip those macros like this: https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#ignoring-attributes-and-macros

saudet commented 3 years ago

It looks like you're not parsing the header file? If that's the case, you'll need to make sure that Loader.load() gets called, which you are apparently not doing.

JinXingJX commented 3 years ago

We need to skip those macros like this: https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#ignoring-attributes-and-macros

Thanks for ans,I will close it after solve the problem.