Hi,
There are two file: test.c and test.sv.
gcc -fPIC -shared -o aaa.so test.c svdpi.h
I compiled the test.c file useing gcc, and generated a aaa.so file.
then, I simulation test.sv with aaa.so, the result was correct.
However, when I renam the test.c to test.cpp, and recompiled it
gcc -fPIC -shared -o aaa.so test.cpp svdpi.h
Simulation again, runtime repote error: DPI import function not found…
What should I do to compile *.cpp files ?
Best regards,
lipeng yang