Part Number: CCSTUDIO
Tool/software: Code Composer Studio
Hello.
Just for a test I created a new project. I called it "JustATest. For this question, it is irrelevant that the target platform is, but I used my BBB. One of the first lines in main.c is
#include <xdc/std.h>
It compiles fine.
WHY??
The header file "std.h" is over in C:\ti\xdctools_3_32_02_25_core\packages\xdc. However that location is NOT defined anywhere in the project properties, and I even examined the build output. It's not there either.
Logically, this cannot compile, and yet, somehow, the compiler seems to be able to find the header file, Here is the actual output:
**** Build of configuration Debug for project JustATest **** "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O making ../src/sysbios/sysbios.aea8fnv ... gmake[1]: Nothing to be done for 'all'. 'Building file: ../main.c' 'Invoking: ARM Compiler' "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7A8 --code_state=32 -me --include_path="C:/Users/scott/workspace_v7/JustATest" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --define=am3359 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c" 'Finished building: ../main.c' ' ' making ../src/sysbios/sysbios.aea8fnv ... gmake[2]: Nothing to be done for 'all'. 'Building target: JustATest.out' 'Invoking: ARM Linker' "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7A8 --code_state=32 -me --define=am3359 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"JustATest.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --reread_libs --define=A8_CORE=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="JustATest_linkInfo.xml" --rom_model -o "JustATest.out" "./main.obj" -l"configPkg/linker.cmd" -llibc.a <Linking> 'Finished building target: JustATest.out' ' ' **** Build Finished ****
The only points of interest are the include statements in the compile step. Neither one of them mentions the xdctools_3_32_02_25_core\packages\xdc location.
How is the compiler finding it? And why is this behavior so obfuscated? It makes creating new projects all the more difficult.
-CSW