Raildex
Raildex

Reputation: 4765

DLL not found despite static linking

I have bass.lib, bass_fx.lib and zlib.lib in my Library folders and Additional Dependencies in my project. enter image description here

enter image description here But when I run my program, it complains it can't find bass.dll, bass_fx.dll and zlib.dll.

How can this be fixed?

Upvotes: 1

Views: 1294

Answers (1)

StPiere
StPiere

Reputation: 4253

If you want to link statically, first you have to make sure that the *.lib's you have are really static and not dynamic libraries (which seems to be the case).

You can use dumpbin from visual studio command line tools, to verify what's inside those .libs.

Upvotes: 2

Related Questions