Tool/software: Code Composer Studio
Hi, using project "sensor_CC1352R1_LAUNCHXL_tirtos_ccs_syscfg" with SimpleLink SDK 3.30.0.03, I have renamed main.c to main.cpp.
A first problem comes up with the compiler. The hal_types.h files defines bool without a c++ safeguared. Fixed with:
#ifndef __cplusplus #define bool _Bool #endif
But the linker fails with the following:
<Linking> undefined first referenced symbol in file --------- ---------------- Main_excHandler /Users/mh/workspace_cc1352_released/mood_light/Debug/configPkg/package/cfg/app_pem4f.oem4f halAssertHandler <whole-program> error #10234-D: unresolved symbols remain
What can I do to use C++ from main?