How to install Visual Leak Detector on Visual Studio 2019?

戏子无情 提交于 2020-04-17 22:09:40

问题


I run setup file from Releases, and tried to follow official guide, but it has instructions for older versions only (Visual C++ 2010/2012/2013). I didn't find menus mentioned there. So how do I install vld on VS 2019?


回答1:


Suppose install path of VLD is C:\Program Files (x86)\Visual Leak Detector

Configure your project in order to use VLD when build Debug Win32:

  1. Open ProjectProperties
  2. Select Configuration: Debug, Platform: Win32
  3. Open Configuration PropertiesVC++ Directories
  4. Append Include Directories with C:\Program Files (x86)\Visual Leak Detector\include
  5. Append Library Directories with C:\Program Files (x86)\Visual Leak Detector\lib\Win32

In similar way, for Win64 you do:

  1. Open ProjectProperties
  2. Select Configuration: Debug, Platform: Win64
  3. Open Configuration PropertiesVC++ Directories
  4. Append Include Directories with C:\Program Files (x86)\Visual Leak Detector\include
  5. Append Library Directories with C:\Program Files (x86)\Visual Leak Detector\lib\Win64

For Release configuration actions are identical, just choose Release on step (2).

Congratulations, now you can use VLD, just

#include <vld.h>


来源:https://stackoverflow.com/questions/58439722/how-to-install-visual-leak-detector-on-visual-studio-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!