Answer the question
In order to leave comments, you need to log in
How to add a DLL search directory for a C++ project in VIsual Studio?
Good day!
There is a C++ project in VIsual Studio . It contains several DLLs. They are connected implicitly through LIB. Now all the DLLs are in the root of the project being built (next to the exe) and everything works fine. But there is a need to transfer all DLLs to a separate directory (for example, let it be libs).
The question is how to do it? How to add DLL search directories or how to register links to these same DLLs?
I found only one way - to set directories with DLLs through Project Properties -> Debugging. But the problem is that all this only works to run the program from the VS environment. If you just compile the EXE and run it, the DLL still doesn't find it.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question