Tool/software: Code Composer Studio
Hello,
I am attempting to port some code to create a static library.
It requires a mutex. So naturally I am trying to use Sys/bios. This I hit this roadblock, deep in C:\ti\bios_6_46_05_55\packages\ti\targets\arm\elf\std.h ...
The error:
"C:/ti/bios_6_46_05_55/packages/ti/targets/arm/elf/std.h", line 28: fatal error #1965: cannot open source file "A8.h"... Well, there isn't one. There are plenty of A8F.h and A8Fnv.h ....
It's in this header.... which is creating another header file name, but it cannot be found:
/* Define target-specific "portable" macros * * The build command-line define xdc_target_name__ to be the value * of the target's name config parameter. We use this to include the * target-specific definitions for the required target-independent * xdc_target* macros. */ #if defined(xdc_target_name__) & !defined(xdc_target_macros_include__) #include xdc__local_include(xdc_target_name__) #endif
That xdc_target_name__ is resolving to "A8" and xdc__local_include converts it to a header name (appends the .h)
Which is coming from "select.h" :
Well, in the normal "sample" project to blink the LED seems to be able to find the header file A8.h... I examine the exact same headers and #define, and it IS trying to open a header file named A8.h .But my project can't.
HOW IS AN EXAMPLE PROJECT ABLE TO FIND A HEADER WHICH DOES NOT EXIST?
As is typical of these examples, and the CS environment as a whole, there is a bunch of stuff going on "under the covers" which is not explained.