# \#export-DPI-C

**URL:** https://verificationacademy.com/forums/tag/export-dpi-c/5459.md

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

---

## [Unable to use MINGW's G++ to compile C++ code with DPI-C Export. ](https://verificationacademy.com/forums/t/unable-to-use-mingws-g-to-compile-c-code-with-dpi-c-export/51622)

<div class="topic-metadata">

**Author:** [@Justin\_Lee\_KEYS](https://verificationacademy.com/forums/u/Justin_Lee_KEYS)\
**Replies:** 1\
**Last updated:** [May 18, 2026, 12:53pm UTC](https://verificationacademy.com/forums/t/unable-to-use-mingws-g-to-compile-c-code-with-dpi-c-export/51622 "2026-05-18T12:53:33Z")

</div>

Hi, Newbie here. I have a file named dpi\_server.cpp and a systemverilog file named sv\_testbench.sv. Inside the sv\_testbench.sv, I have a function named and described as below: export "DPI-C" function sv\_display\_messag…

---

## [Why my DPI-C failed after using declaring C function - write()?](https://verificationacademy.com/forums/t/why-my-dpi-c-failed-after-using-declaring-c-function-write/51394)

<div class="topic-metadata">

**Author:** [@mlsxdx2025](https://verificationacademy.com/forums/u/mlsxdx2025)\
**Replies:** 7\
**Last updated:** [October 6, 2025, 5:52pm UTC](https://verificationacademy.com/forums/t/why-my-dpi-c-failed-after-using-declaring-c-function-write/51394 "2025-10-06T17:52:28Z")

</div>

Hi folks, I have some difficulty to bring up a simple DPI-C example. The compiler error message like this: Error-\[DPI-DXCWOS\] DPI export call with NULL scope DPI export function/task “wait\_clock” is illegally invoked…

---

## [DPI-C error from C to SV](https://verificationacademy.com/forums/t/dpi-c-error-from-c-to-sv/31295)

<div class="topic-metadata">

**Author:** [@mhibarger](https://verificationacademy.com/forums/u/mhibarger)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 9:17am UTC](https://verificationacademy.com/forums/t/dpi-c-error-from-c-to-sv/31295 "2024-07-10T09:17:30Z")

</div>

I’m trying to call a systemverilog function from C. I’ve called the c-function from systemverilog and the response is going to be a call back from the C to the systemverilog. But I’m having some scoping issues. I put …

---

## [Why exported task or function can't have open arrays as a formal argument whereas imported function or task have?](https://verificationacademy.com/forums/t/why-exported-task-or-function-cant-have-open-arrays-as-a-formal-argument-whereas-imported-function-or-task-have/38425)

<div class="topic-metadata">

**Author:** [@skushwah](https://verificationacademy.com/forums/u/skushwah)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 2:33am UTC](https://verificationacademy.com/forums/t/why-exported-task-or-function-cant-have-open-arrays-as-a-formal-argument-whereas-imported-function-or-task-have/38425 "2020-12-07T02:33:31Z")

</div>

This question is based on DPI. Please provide me the reason behind above scenario. Thanks & Regards Shivakant

---

## [How to pass/export the SV class handle to a C-DPI function?](https://verificationacademy.com/forums/t/how-to-pass-export-the-sv-class-handle-to-a-c-dpi-function/34580)

<div class="topic-metadata">

**Author:** [@suyog\_asic](https://verificationacademy.com/forums/u/suyog_asic)\
**Replies:** 1\
**Last updated:** [June 18, 2018, 2:56pm UTC](https://verificationacademy.com/forums/t/how-to-pass-export-the-sv-class-handle-to-a-c-dpi-function/34580 "2018-06-18T14:56:14Z")

</div>

Hi all, I have a requirement where I need to export my test configuration object(which is in SV) to C domain. I need all those test config variables in C. I know there are equivalent C data types for simple datatypes l…
