Fatal error: 0: Trouble linking to file_name.dll

Hello,

after the QSPICE update or maybe Windows update I have an issues with running old simulations. The “Fatal error: 0: Trouble linking to file_name.dll” occur. Sometime it helps to open the C++ file and press the F5, but not for every file.

Best regards
KCN

When I’m copying the project content to new Schematic and the C++ files to new project folder it works without issues.

1 Like

Hi, KCN.

Is it possible that the DLL that fails was compiled as a 64-bit DLL? I don’t think that can happen with DMC compiles but I sometimes do that by accident when compiling with MinGW or MSVC. That’s the error message when I do that.

–robert

I’m using the QSPICE built in compiler.

Well, I think this message indicates that QSpice couldn’t load the DLL – it exists but couldn’t be loaded with the LoadLibrary API call. Are the DLLs on your local drive (not OneDrive or other network-dependent locations)? I suppose another possibility is insufficient rights…

I store them in the Google Drive, but for simulations make a copy on a desktop.

@RDunn I noticed that sometimes the Windows Security is blocking .dll files and probably this is causing an issue with “Fatal error: 0: Trouble linking to file_name.dll”. See attached picture.

@KCN,

Suggestion: Try deleting the .dll manually and recompile the source .cpp.

Maybe the virus checker on Windows can’t verify the source of the dll. However, a recompile of the source to generate the dll will allow Windows not to complain because it can tell you are the author (so everything is OK.)

Len

Thank you @lpoma. I already tried this, but nothing changed. Funny fact is that it is enough to change one value of some variable inside the c++ code and the error will occur.

The problem disappear after disabling the Smart App Control in Windows, but you need to be aware that it is not possible to enable the Smart App Control again.

2 Likes

Gotta love Microsoft, what with protecting us from ourselves and all… :roll_eyes:

I’m not vouching for this but see: https://www.youtube.com/watch?v=Gm4L2jJU3CA

2 Likes