ghertz
Newbie level 5
Hi -
I'm having trouble creating a .dll file by using the gcc command on windows (MinGW). Here is the command I'm running:
command: gcc -shared -Bsymbolic -o mytest.dll mytest.cpp
error:: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\aashoka\AppData\Local\Temp\cc2UzHHe.o:mytest.cpp.text+0x3a): undefined reference to `Write' collect2.exe: error: ld returned 1 exit status
The .h file --- created using the command: vlog -sv ./mytb.sv -dpiheader ../src_cpp/experiment1.h -- is included in the mytest.cpp. And this file contains the Read and Write functions that is implemented in the mytb.sv. I also have the following lines in mytb.sv
export "DPI-C" task Write;
export "DPI-C" task Read;
import "DPI-C" context task mymain();
Any thoughts on how I can get past the dll creation step?
The files I'm using are attached.
Thanks,
Aditya
I'm having trouble creating a .dll file by using the gcc command on windows (MinGW). Here is the command I'm running:
command: gcc -shared -Bsymbolic -o mytest.dll mytest.cpp
error:: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\aashoka\AppData\Local\Temp\cc2UzHHe.o:mytest.cpp.text+0x3a): undefined reference to `Write' collect2.exe: error: ld returned 1 exit status
The .h file --- created using the command: vlog -sv ./mytb.sv -dpiheader ../src_cpp/experiment1.h -- is included in the mytest.cpp. And this file contains the Read and Write functions that is implemented in the mytb.sv. I also have the following lines in mytb.sv
export "DPI-C" task Write;
export "DPI-C" task Read;
import "DPI-C" context task mymain();
Any thoughts on how I can get past the dll creation step?
The files I'm using are attached.
Thanks,
Aditya