# \#shared-object

**URL:** https://verificationacademy.com/forums/tag/shared-object/5085.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [SV DPI shared library compiled with g++ or gcc](https://verificationacademy.com/forums/t/sv-dpi-shared-library-compiled-with-g-or-gcc/36157)

<div class="topic-metadata">

**Author:** [@sliderb4u](https://verificationacademy.com/forums/u/sliderb4u)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 8:40pm UTC](https://verificationacademy.com/forums/t/sv-dpi-shared-library-compiled-with-g-or-gcc/36157 "2019-06-07T20:40:30Z")

</div>

I’m trying various ways to run a C++ function in SystemVerilog. A test example I have is the following: SV code: module test; import "DPI-C" c2sv\_disp = function void c2sv\_disp(); initial begin c2sv\_disp(); …

---

## [Vsim error loading DPI shared object file using standard C lib functions, undefined symbol](https://verificationacademy.com/forums/t/vsim-error-loading-dpi-shared-object-file-using-standard-c-lib-functions-undefined-symbol/30376)

<div class="topic-metadata">

**Author:** [@gtakushi](https://verificationacademy.com/forums/u/gtakushi)\
**Replies:** 3\
**Last updated:** [August 27, 2017, 4:40am UTC](https://verificationacademy.com/forums/t/vsim-error-loading-dpi-shared-object-file-using-standard-c-lib-functions-undefined-symbol/30376 "2017-08-27T04:40:51Z")

</div>

I am trying to compile standard libpng C functions into a shared object suitable for calling through the DPI. I can successfully (no errors or warnings) compile my C code and generate a shared object file, but when I try…

---

## [Error while loading SystemC shared lib](https://verificationacademy.com/forums/t/error-while-loading-systemc-shared-lib/33322)

<div class="topic-metadata">

**Author:** [@ravi](https://verificationacademy.com/forums/u/ravi)\
**Replies:** 4\
**Last updated:** [July 20, 2017, 2:12pm UTC](https://verificationacademy.com/forums/t/error-while-loading-systemc-shared-lib/33322 "2017-07-20T14:12:53Z")

</div>

Hi, We are using Questasim 10.5b. Our requirement is to create a single shared library (.so) for SystemC files. These files have SC\_EXPORT\_MODULE for a module\_A. Used following commands: vlib sc\_work sccom -64 -D…
