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.
I simply define a parameter called "td_bf". but ccs6.1 gives an error message. it says: "#66 expected a ";" ".
the command is shown below. it is confusing to me that a ";" is inserted at the end of the command. why it says a ";" is missing?
int32 td_bf = 0; // deadtime before main switch turn-on
I am using c language.
Thank you.
Zhiyang
From what you show here, I cannot tell what is wrong. But I can tell how to probably work that out for yourself.
Try adding the compiler build option --verbose_diagnostics. This causes the compiler to echo the problem source line, with a ^ character under it to indicate exactly where on the source line the problem begins.
While I am not sure, I suspect preprocessing changes this line in a way you do not expect. To see this, use the option --gen_acp_raw and inspect the resulting .rl file. You can see the source line before and after preprocessing. You ought to read about this option in the compiler user's manual. You don't say which compiler you use, so this link is to all the manuals.
Thanks and regards,
-George
Zhiyang Chen said:I put in "--verbose_diagnostics" and rebuild project.
no error message get involved this time.
I have never seen that happen. I am left to guess at really odd things like: Is your hard drive failing? When you remove --verbose_diagnostics, does the error return? If that happens, then please submit your project. Please see this post for the details.
Thanks and regards,
-George