I'm trying to use the __TI_COMPILER_VERSION__ preprocessor symbol in my linker command file. The section looks like this:
#if __TI_COMPILER_VERSION__ > 6000000
/* do something */
#else
/* do something else */
#endif
I keep getting this warning
warning #19014-D: undefined preprocessor symbol '__TI_COMPILER_VERSION__'
and linking fails when building with CCSv5.3 (code gen tools v6.1.3) because the linker attempts to execute the else part. Is it not possible to use any of the predefined symbols? Does it have to be a user defined symbol?