We have recently started including stdbool in our main include file for C2000 device support in controlsuite. This morning I was doing some work on some application code to update it to our newest device support package and I noticed that the code won't compile anymore. I made a simple project to further debug and it appears that when stdbool is included through a .cdecls directive the compiler errors out. To be specific it looks like its complaining about the _ in typedef unsigned int _Bool; Here is the full console listing:
'Building file: ../test.asm'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 6.0.3/bin/cl2000" -v28 -mt -ml -g --define="_DEBUG" --define="LARGE_MODEL" --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 6.0.3/include" --include_path="C:/Program Files/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/controlsuite_gitorious_dev/development_kits/C2000_LaunchPad" --include_path="C:/libs/math/IQmath/v15c/include" --quiet --verbose_diagnostics --diag_warning=225 --output_all_syms --cdebug_asm_data --preproc_with_compile --preproc_dependency="test.pp" "../test.asm"
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 6.0.3/include/stdbool.h", line 19: error:
invalid combination of type specifiers
typedef unsigned int _Bool;
^
"../test.asm", WARNING! at line 2: [E1000] error while processing C code in
.cdecls directive
.cdecls C,LIST,"DSP28x_Project.h"
Is this expected behavior? It seems to me like C99 standard support headers should compile in assembly.
Regards,
Trey