I have developed a couple of shared libraries, CFC and VHPI, for C access to VHDL design and NCSIM simulator. I used Cadence recommended Pliwizard to compile the libraries. I get no errors while building the libraries. But when I dynamically link the libraries to my application using GNU linker I get undefined reference errors at every function call in both shared libraries. The shared libraries use Cadence provided vhpi_user.h and cfclib.h files which define various functions. These header files are included in the shared library sources.
It seems that Pliwizard builds the shared libraries but does not properly link with other dependent sources. I am now poised to build the libraries with Makefile template which is hierarchal and definitely not a pretty option.
Please share you experience of linking shared objects.
YaseenOriginally posted in cdnusers.org by Yaseen