Forum Discussion
Could not link 'vsim_auto_compile.dll' error troubleshooting.
Hi Njoroge,
Thank you for sharing the latest log.
Based on the log, the current issue appears to be that the GCC 6.3.0 compiler located at: C:\MinGW\bin\g++.exe is unable to successfully link vsim_auto_compile.dll against the Questa 2024.1 libraries. From the transcript, it appears that Questa is picking up this external MinGW compiler from your system PATH rather than using its bundled GCC compiler.
To help further troubleshoot the issue, could you please provide the following information?
1. Which Quartus version are you currently using?
2. Could you check whether your Questa installation includes a bundled GCC compiler? If available, please try using the bundled GCC compiler instead.
Please look for a path similar to:
<Questa_install_dir>\gcc-<version>-mingw64<variant>\bin\g++.exe
For example:
C:\questasim64_2024.1\gcc-10.3.0-mingw64vc16\bin\g++.exe or
questa_fse\gcc-7.4.0-mingw64vc15\bin\g++.exe
If available, please let me know the exact path too.
3. Once the bundled GCC compiler is located, could you try updating the vsim command to explicitly use it via the -dpicpppath option?
For example: eval vsim -voptargs=+acc -dpicpppath "<path_to_bundled_g++.exe>" $elabcommand
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; }
Note: If your DPI code does not use:
#include <winsock2.h>
then you may also try removing: -ldflags "-lws2_32" -64 and rerunning the simulation.
Regards,
ZiYingE_Altera
Hi ZiYingE_Altera,
The solution is actually much easier than that. What I had was the 32-bit Mingw installed. All I did was remove it and install the 64-bit version using msys tools and then set the environment variable to point to the bin folder. It worked right away.
I am on Quartus Pro 25.3 and there is no gcc compiler bundled with Questasim on my system.
I believe the problem has been solved so I appreciate the help. Thank you.
- ZiYingE_Altera1 month ago
Contributor
Hi Njoroge,
Thank your for the update.
I'm glad to hear that the issue has been resolved successfully.
Since there are no further questions at this time, I will go ahead and close this thread.
We will continue to monitor this post for the next 5 days. If there are no further inquiries during this period, I will step back and allow the community to assist with any future follow-up questions.
Thank you for engaging with us!
Best regards,
ZiYingE_Altera