Usage of .so files

In reply to boryah:

You are using the C++ compiler, but the DPI is a C interface. You need to follow the general rules for linking C with C++ code. Check your tool’s User Manual for details.