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
Problem with PRAGMA and undefined symbols after messing with syntax highlighting and scalability options.
I'm using the C2000 Compiler Ti v18.1.4.LTS but I don't think the issue is compiler specific.
I have a large file and somehow during my attemps to get syntax highlighting working in the editor I set the compiler option --cpp_default.
This caused many compiler errors and I could not find a checkbox in the project properties to undo this option so finally had to
edit the compiler flags directly and remove the --cpp_default option to get the project to build.
I believe you can set the compiler flags for each file and somehow that one large file had option --cpp_default set which
caused the issue.
I spent some time in the project properties trying to resolve the issue with the C Dialect and C++ Dialect drop down boxes but that didn't do what I wanted.
The problem is resolved but I thought I would post this in case anyone else had this same issue.
This step ...
John MacGregor said:edit the compiler flags directly and remove the --cpp_default option to get the project to build.
... is not necessary.
To understand how to set, or undo, file specific options in CCS, please see the documentation on File Specific Options.
To find where to change a specific compiler option like --cpp_default, please see the article Finding Compiler Options in CCS.
Thanks and regards,
-George