Systemverilog dpi c: How to import more than one c files!?!

In reply to andleon82:

The error that you showed means, function globalb was not found. You compiled the shared library

gcc -shared -fPIC -lm -Bsymbolic -o mylibc.so globalb.c globalc.c

But did you load the mylibc.so file when running?