praneeth87
Newbie level 2
Hi,
I have cpp files whih i have compiled and got executable file using gcc 4.3.3. I m working on OVM environment where in pkg.sv file the import functions are done follwing way .
import "DPI-C" function void engine_call_T(input string de_inp)
import "DPI-C" function void engine_call_B(input string de_inp)
Im getting following error,
All of 986 modules done
make[1]: Entering directory `/..sim/rundir/csrc'
if [ -x ../simv ]; then chmod -x ../simv; fi
g++ -o ../simv -melf_i386 -m32 -Wl,-whole-archive -Wl,-no-whole-archive _vcsobj_1_1.o _vcsobj_1_2.o 5NrI_d.o 5NrIB_d.o SIM_l.o rmapats_mop.o rmapats.o /tools6/VCS_D2011_12/linux/lib/libvirsim.so /tools6/VCS_D2011_12/linux/lib/librterrorinf.so /tools6/VCS_D2011_12/linux/lib/libsnpsmalloc.so /tools6/VCS_D2011_12/linux/lib/libvcsnew.so /tools6/VCS_D2011_12/linux/lib/libreader_common.so /tools6/VCS_D2011_12/linux/lib/libBA.a /tools6/VCS_D2011_12/linux/lib/libuclinative.so /tools6/VCS_D2011_12/linux/lib/vcs_save_restore_new.o /tools6/VCS_D2011_12/linux/lib/ctype-stubs_32.a -ldl -lc -lm -lpthread -ldl
_vcsobj_1_1.o: In function `T_VCSgd__vcs_unit_1514597442_x2PIid_1_826_0':
(.text+0xe9ee7): undefined reference to `engine_call_T'
_vcsobj_1_1.o: In function `T_VCSgd__vcs_unit_1514597442_x2PIid_1_828_0':
(.text+0xeaee3): undefined reference to `engine_call_B'
collect2: ld returned 1 exit status
make[1]: *** [product_timestamp] Error 1
make[1]: Leaving directory .../sim/rundir/csrc'
Make exited with status 2
CPU time: 456.480 seconds to compile + 6.786 seconds to elab + 3.176 seconds to link
please guide me in solving the error.
I have cpp files whih i have compiled and got executable file using gcc 4.3.3. I m working on OVM environment where in pkg.sv file the import functions are done follwing way .
import "DPI-C" function void engine_call_T(input string de_inp)
import "DPI-C" function void engine_call_B(input string de_inp)
Im getting following error,
All of 986 modules done
make[1]: Entering directory `/..sim/rundir/csrc'
if [ -x ../simv ]; then chmod -x ../simv; fi
g++ -o ../simv -melf_i386 -m32 -Wl,-whole-archive -Wl,-no-whole-archive _vcsobj_1_1.o _vcsobj_1_2.o 5NrI_d.o 5NrIB_d.o SIM_l.o rmapats_mop.o rmapats.o /tools6/VCS_D2011_12/linux/lib/libvirsim.so /tools6/VCS_D2011_12/linux/lib/librterrorinf.so /tools6/VCS_D2011_12/linux/lib/libsnpsmalloc.so /tools6/VCS_D2011_12/linux/lib/libvcsnew.so /tools6/VCS_D2011_12/linux/lib/libreader_common.so /tools6/VCS_D2011_12/linux/lib/libBA.a /tools6/VCS_D2011_12/linux/lib/libuclinative.so /tools6/VCS_D2011_12/linux/lib/vcs_save_restore_new.o /tools6/VCS_D2011_12/linux/lib/ctype-stubs_32.a -ldl -lc -lm -lpthread -ldl
_vcsobj_1_1.o: In function `T_VCSgd__vcs_unit_1514597442_x2PIid_1_826_0':
(.text+0xe9ee7): undefined reference to `engine_call_T'
_vcsobj_1_1.o: In function `T_VCSgd__vcs_unit_1514597442_x2PIid_1_828_0':
(.text+0xeaee3): undefined reference to `engine_call_B'
collect2: ld returned 1 exit status
make[1]: *** [product_timestamp] Error 1
make[1]: Leaving directory .../sim/rundir/csrc'
Make exited with status 2
CPU time: 456.480 seconds to compile + 6.786 seconds to elab + 3.176 seconds to link
please guide me in solving the error.