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: Code Composer Studio
Hi,
when I compile a project with CCS 8.3.1 I get a compilation error in the abs function:
Invalid arguments.
When I position the mouse over the error sign in the screen I get Invalid Arguments Candidates are int abs(int).
I've check the arguments and they're ok.
Moreover, the output binary of the project is corrrectly generated.
That's why I think it is not problem of the compiler but a problem that comes from the Eclipse environment.
The error sign I get is different from the error sign when there is a real error. For example a lack of ; at the end of a line.
Has anyone experienced the same problem ?.
Looks like Eclipse is doing some kind of syntax analysis prior to sending the code to the compiler.
Is there any way to disable this feature of Eclipse ?
Regards,
Aitor
Aitor,
If you do not see any errors in the CCS Build Console then, as you guessed, the errors must be coming from the built-in code analyzer that comes with Eclipse. Normally these are turned off for CCS projects, however it is possible to turn it on inadvertently.
Please take a look at this page for details on how to turn it back off:
http://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#advanced-project-settings
I am going to bet that the analyzer is OK, and that "the arguments are OK" is not correct. That is why a test case is essential.