Add Include directories
In this example, I add Include directories for Boost, Qt, OpenCV, and VLD.
Right click at project name in Solution Explorer->Configuration Properties->C/C++->General->Additional Include Directories->Edit… . Then, you have to add the following paths as shown in figure below.
Include header files for Qt library
Include header files for OpenCV
Include header files for C++ Boost
Include header files for Visual Leak Detector
A QT_DIR variable value is C:\Qt\4.8.5 and VLD_DIR variable value is C:\VisualLeakDetector.
NOTE: Your variable value may be different in your case.
Add library directories
In this example, I add additional library directories for Boost, OpenCV, Qt, and VLD.
Right click at project name in Solution Explorer->Configuration Properties->Linker->General->Additional Library Directories->Edit…
Then, you have to add the following paths as shown in figure below.
The last step explains how to add additional dependencies for each library.
Right click at project name in Solution Explorer->Configuration Properties->Linker->Input->Additional Dependencies->Edit…. Then, you have to add .lib files that will be used in your program. In this example, I use the following libraries:
NOTE: This example shows a configuration in release mode. If you would like to configure your project for debug mode, dependencies name may be slightly different.
That’s all. Let’s compile and run the program. 🙂