I am trying to use DPI cal from uvm class. I have declared import "DPI-C" function void hello_from_c() in sv module.
I have created shared library with gcc with following command g++ -c -shared -fPIC libdpi.cpp -o libdpi.so.
When I run the simulation, the c function does not get called.
Can you please give me gcc command to create share library?
Can I use static library instead of share library for DPI calls?