SV DPI shared library compiled with g++ or gcc

In reply to Gnolaum:

DPI looks for C names, not C++. See https://embeddedartistry.com/blog/2017/4/4/extern-c

Also, most tools will generate this header for you to include. See the vlog -dpiheader option.