Prerequisites
To integrate DPF into an existing C++ project, you must have access to the following files of the AWP_ROOT251/dpf/include folder (AWP_ROOT251 being an environment variable defining the root of the Ansys Inc or DPF Server product):- dpf_api.h
- dpf_api_i.cpp
set DPF_HGP_ROOT=%AWP_ROOT251%/dpf/include
It can also be set by editing the environment variables in Windows settings.
Here is the command for Linux: export DPF_HGP_ROOT=${AWP_ROOT251}/dpf/include
Specify location of DPF files
Using Visual Studio
- In the “Properties” of the project, open the “C/C++” tab.
- Switch to the “general” tab. Edit the “Additional Include Directories” section so that it contains the ”$(DPF_HGP_ROOT)” field.
- Ensure the compilation is done for the same platform and the build is done using the configuration where the properties have been updated (for example, if the ‘Release|x64’ properties are modified, build with the ‘Release|x64’ configuration).