I've been struggling for the whole day trying to compile a very simple (and empty) program on the Launchpad F28377S.
It fails complaining that the _Bool type is undefined:
"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.10/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O2 --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.10/include" --include_path="C:/ti/controlSUITE/device_support/f2837xD/v110/F2837xD_headers/include" --include_path="C:/ti/controlSUITE/device_support/f2837xD/v110/F2837xD_common/include" --advice:performance=all -g --c++03 --cpp_default --define=_INLINE --define=CPU1 --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.cpp" "C:/ti/controlSUITE/device_support/f2837xD/v110/F2837xD_headers/include/F2837xD_Device.h", line 102: error #20: identifier "_Bool" is undefined "C:/ti/controlSUITE/device_support/f2837xD/v110/F2837xD_headers/include/F2837xD_Device.h", line 105: error #20: identifier "_Bool" is undefined "C:\ti\controlSUITE\device_support\f2837xD\v110\F2837xD_common\include\F2837xD_Pbist_defines.h", line 252: error #20: identifier "_Bool" is undefined "C:\ti\controlSUITE\device_support\f2837xD\v110\F2837xD_common\include\F2837xD_Pbist_defines.h", line 254: error #20: identifier "_Bool" is undefined
If the project is compiled in C instead of C++ (thus the main is included in a main.c file rather than a main.cpp file) the project compiles correctly. Now I do need C++ for development of my project so I would like to hear what could solve this. I tried the workarounds of editing the controlSUITE libraries and declare or typedef _Bool but got nowhere.
Ironically I can compile my project if I link it against other Piccolos' libraries but that's not the point. The point is to use this powerful hardware to its full extent ;)
Anyone got this sorted?
Thanks