For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Wrap C++ OCC code with SWIG

Sahaj Panchal's picture

Hi all,

I have created a simple set of functions that create a square box with a cylindrical hole within it and then exports the geometry as a step file. (a solid body)

I then set the project configuration to dll in VC++.

While trying to wrap the code for JAVA with SWIG, I just exported the functions and variables. In this case, my variables were of TopoDS_Shape type, as the functions that create geometry returns a TopoDS_Shape.

Of course, after wrapping it for JAVA I am not able to run it.  (Exception in thread "main" java.lang.UnsatisfiedLinkError) What am I missing here? I am loading the library created with System.loadLibrary function and it is being loaded.