meir
Junior Member level 3
- Joined
- Jan 16, 2013
- Messages
- 26
- Helped
- 5
- Reputation
- 10
- Reaction score
- 5
- Trophy points
- 1,283
- Activity points
- 1,431
I'm trying to call a c++ function from SV code using DPI.
I'm running ModelSim under windows and am using MinGW g++ compiler.
compiling C++ code with:
(from windows cmd line)
from modelsim running:
result :
What am I doing wrong ?
I'm running ModelSim under windows and am using MinGW g++ compiler.
compiling C++ code with:
Code:
g++ -shared -Bsymbolic -o import.dll import.cpp
from modelsim running:
Code:
vsim -sv_lib import work.tb
# Loading .\import.dll
# ** Error: (vsim-3193) Load of ".\import.dll" failed: DLL dependent library not found.
# ** Error: (vsim-3193) Load of ".\import.dll" failed: DLL dependent library not found.
What am I doing wrong ?