You are here: Start » C++ Project Configuration

# C++ Project Configuration

## General Information

Adaptive Vision Deep Learning Library is designed to be used as a part of C++ projects developed with Microsoft Visual Studio in versions 2010-2017.

## Required Project Settings

All projects that use Adaptive Vision Deep Learning Library need some specific values of the compiler and linker settings. Please apply the settings listed below to configured project:

• Configuration Properties | General
• Character Set should be set to Use Unicode Character Set.
• Configuration Properties | C/C++
• General
• Additional Include Directories should contain the $(AVLDL_PATH4_12)\include\ path. • Configuration Properties | Linker • General • Additional Library Directories should contain the proper path to directory containing the AVLDL.lib file. The proper path is$(AVLDL_PATH4_12)\lib\$(PlatformName)\. • Input • Additional Dependencies should contain AVLDL.lib file. • Configuration Properties | Build Events • Post-Build Event • Command Line should contain copy "$(AVLDL_PATH4_12)\bin\$(PlatformName)\AVLDL.dll" "$(OutDir)" call. This setting is not mandatory, but the application using Adaptive Vision Deep Learning Library requires an access to the AVLDL.dll file and this is the easiest way to fulfill this requirement.

Every source code file that uses Adaptive Vision Deep Learning Library needs the #include <AVLDL.h> (and/or #include <Api.h>) directive. A proper path to the AVLDL.h file is set in the settings of the compiler (described above), so there is no need to use the full path in the directive.

## Providing Dependencies

All programs using AVLDL.dll have to load DLL files from Deps_x64 subdirectory of Adaptive Vision Deep Learning Addon installation directory. Common ways to ensure that are:

• add path to Deps_x64 directory to PATH environment variable, or
• copy contents of Deps_x64 to some directory listed in PATH environment variable, or
• copy contents of Deps_x64 next to AVLDL.dll.