This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
I have a C file that calls multiple header files for multiple TI PDK libraries. More than one of these libraries include the c6x.h file from the c6000 compiler includes. Once the file is included more than once, the compiler throws an error saying the first function that is prototyped is missing a "{". I assume this means that the compiler is trying to add an identical prototype since the file is included twice. I noticed this header file has no #ifndef blocks on it to keep the file from being included more than once. Is there any workaround to this? Since it is included multiple times from TI's own libraries I can't very well fix it myself other than abstracting away the include dependencies.
Thanks for your help!
I am unable to reproduce the problem. For one source file that sees the error, please follow the directions in the article How to Submit a Compiler Test Case.
Thanks and regards,
-George
Issue was with a previous header file that was not reported. It caused the next header file that was copied in to the c file to throw an error. Fixing my code resolved the issue.