In cases where your application includes C++ files, you need to configure the C/C++ Compiler option. Right-click on the project and select

Options > C/C++ Compiler > Language 1

, select

Auto (extension-based)

, and click

OK

.