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,
I'm using CCS Version: 5.5.0 on my project.
Compile error #161 when porting the program from c6414 to c6657
The header file of Monitor_main.c has
The content of line687 and line688 are
I do not use sin and cos in Monitor_main.c , why would it be incompatible?
please help me,
thank you
The following C code produces a similar result ...
// inside a function variable = -cos(radian); #include <math.h>
At the point where cos is called, no prototype for cos is available. That is why the warning diagnostic about function declared implicitly is issued. The compiler knows nothing about the type or number of arguments passed to cos. The compiler presumes cos returns an int. Then, in the standard header file math.h, a prototype of cos is supplied. This prototype specifies that cos takes one double as an argument, and returns a double. That is why the error diagnostic about declaration is incompatible is issued.
It is unusual to for a C file to include yet another C file. Compile each C file separately. Include all the header files near the top of each C file.
For more background on how C code is typically organized, please see this FAQ (not from TI).
Thanks and regards,
-George
I don't have ccsv5 installed, but I think with the version of gmake used with ccsv5 that means the project is up to date and make doesn't need to build anything. I.e. you can ignore the message.什么时候能不菜 said:wonder if "gmake: Nothing to be done for `all'." is a mistake, or I can ignore it
By default CCS will attempt to build the program before starting the debug session, and therefore if you have previously Built the project successfully then when come to start a debug session the project will already be up to date hence the message.
[With the gmake version in ccs 10 the message is gmake[1]: <target_name>' is up to date.]