Visual Studio 2010: dll missing

I googled for the whole day and I'm crazy.

It’s good that my problem is: I wrote my project vs, I indicated everything to β€œenable” (by choosing project properties β†’ configuration properties β†’ VC ++ directories) and all extern library directories (in the same way). Then I specified all the additional libraries by selecting project properties β†’ Linker β†’ input β†’ Additional Dependencies and adding all the paths of the .lib files. I press F7, it compiles without errors. I run the project and .. System error: libsndfile-1.dll is missing.

This is good, so I opened the vs console, I switched to the path libsndfile-1.def (and libsndfile-1.lib), and I did: "lib.exe libsndfile.def". Here I got another error: "LINK: fatal error lnk1104 lib.exe, cannot open libsndfile.lib"

I tried to download libsndfile.dll from the internet, but it still does not work. I also tried putting all the libraries in my source files in visual studio .. but again, no way.

Where am I mistaken?

Thank you in advance

EDIT: I saw that vs also doesn't find another dll!

+4
source share
2 answers

Please do not copy the DLL to a folder ... it annoys other developers in your organization; instead, right-click your application and click properties, go to "Configuration Properties" β†’ "Debug" and set the "Environment" parameter to:

PATH=C:\PathToInclude;%PATH% 

this will add the path to your environment and combine it with your application environment.

Do this for all configurations of your application.

+16
source

I decided to just put all the dll files in the same directory .exe file

0
source

Source: https://habr.com/ru/post/1438244/


All Articles