Forum Discussion
Questa Sim on Windows - linking to external LIB
- 4 years ago
I believe we have figured it out. We needed to add the -64 parameter, and -ldflags to pass parameters to gcc. This appears to work:
vsim -c DPI_test -ldflags "-lws2_32" -64
I believe we have figured it out. We needed to add the -64 parameter, and -ldflags to pass parameters to gcc. This appears to work:
vsim -c DPI_test -ldflags "-lws2_32" -64
- ShengN_altera4 years ago
Super Contributor
Good to know that. It'll be great if you can mark it as solution for better future reference.
- Njoroge2 months ago
Occasional Contributor
How exactly do you do this? Where do you add this?
- RichardT_altera2 months ago
Super Contributor
I am not OP so my understanding may not be fully accurate. However, based on the information provided, the vsim command is invoked after the OP compiled the design using vlog. These command appears to be part of the Questa simulation flow.
I would recommend checking the simulation setup scripts, such as:-msim_setup.tcl
-compile.do
These scripts usually define how the vlog and vsim commands are invoked, and should help identify where exactly this command is coming from in the flow.
FYI, Altera only support 64-bit Questasim (And, only 64-bit Questa Altera FPGA Edition). 64-bit Questasim can only link with 64-bit winsock library and 32-bit questasim can only link with 32-bit winsock library. This is just how windows applications and even linux applications work.
Regards,
Richard Tan