This is using the cl compiler (MSVC). In your CMake example you are using g++. That is likely the reason it can’t find symbols from your R3DSDK-2017MD.lib library to link. You need to use cl and not g++. To do that with CMake make sure you run CMake from a command prompt where the compiler is initialized correctly by running vcvars.bat.