Other Parts Discussed in Thread: EK-TM4C1294XL, EK-TM4C123GXL, EK-TM4C129EXL
On: TivaWare_C_Series-2.1.4.178
I started a project from the senshub_iot example, trimmed it down and got only the bare minimum I needed working. However, renaming the main.c file to main.cpp causes compile error:
At end of source: error #68: expected a "}"
I figured it was because some files have unbalanced c++ extern guards. Files affected:
./examples/boards/ek-tm4c123gxl-boostxl-senshub/drivers/buttons.h
./examples/boards/ek-tm4c1294xl/drivers/buttons.h
./examples/boards/ek-tm4c1294xl-boost-cc3100/drivers/buttons.h
./examples/boards/ek-tm4c1294xl-boostxl-senshub/drivers/buttons.h
./examples/boards/ek-tm4c123gxl/drivers/buttons.h
./examples/boards/ek-tm4c1294xl-boost-dlptrf7970abp/drivers/buttons.h
./examples/boards/ek-tm4c129exl/drivers/buttons.h
./examples/boards/dk-tm4c129x-boostxl-senshub/drivers/buttons.h
./examples/boards/ek-tm4c1294xl-boostxl-battpack/drivers/buttons.h
./examples/boards/dk-tm4c129x/drivers/buttons.h
./examples/boards/ek-tm4c123gxl-boost-dlptrf7970abp/drivers/buttons.h
./cc3100-sdk/simplelink/include/simplelink.h
all buttons.h open the guard twice, simplelink.h closes it twice. Removing the duplicate guard fixed the issue.