Forum Discussion

AlexBarry's avatar
AlexBarry
Icon for New Contributor rankNew Contributor
4 years ago
Solved

Questa Sim on Windows - linking to external LIB

I have been trying to use Questa (from Quartus Lite 21.1) on Windows to link to the Winsock2 library, without success. I have a minimal test case attached. I can't get it to load into the simulator...
  • AlexBarry's avatar
    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