I have written a C application that depends on a few DLLs and am having some trouble when using the local debugger. It's this well documented error message:
"This program can't start because xxx.dll is missing from your computer."
Right now it's portaudio_x86.dll but the DLL is arbitrary as I'm getting the same behaviour for a bunch of others (libfftw3-3.dll, libsamplerate-0.dll, libsndfile-1.dll...)
I have been to Configuration Properties\Debugging and changed the Environment to:
PATH =
C:\portaudioASIO\portaudio\lib;%PATH%
(where the portaudio dll is)
and Merge Environment is 'Yes' (I've tried every combination and permutation of the PATH with appending, prepending, having $(ProjectDir)
in the mix - all to no avail)
but this doesn't resolve it and I still get the error message "dll not found" when I debug.
I'm currently working around it by including the DLLs in the debug folder but this seems like a bit of a hack to me and from reading all the other posts [ 1, 2, 3 ] about setting the Environment PATH variable I can't see why it doesn't work.
Any tips on how to get the PATH variable to behave properly ? Cheers!
This is using MSVS Community 2015, the app is in C but the same thing happens with a C++ version.