Hi,
I am using the example given here :
https://verificationacademy.com/cookbook/matlab/integration
I am using the second method (Using Matlab’s C API together with SystemVerilog DPI).
When I compile & link the matlab_dpi.c file in Linux - it works fine.
However, when I try to create a dll file in Windows, I succeed in creating the object file(matlab_dpi.o), but I cannot create the dll file.
The command I use is :
gcc -shared -Wl,-Bsymbolic -Wl,-export-dynamic -L/bin/glnxa64 -o matlab_dpi.dll matlab_dpi.o
I get error messages :
Undefined reference to ‘engOutputBuffer’
Undefined reference to ‘engOpen’
Undefined reference to ‘engEvalString’
Undefined reference to ‘engClose’
I use a 64 bit version of the simulator.
My questions are :
- What is the correct command?
- Where are the .h files that include the missing functions? I could not find it.
Thanks,