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.
工具/软件:Code Composer Studio
我正在尝试导入 IQMATHLIB 库。 我在文件搜索选项中包含了路径。 已包括“包括”选项。 但我遇到了错误
"../main.c"、第7行:错误#41:需要标识符
"./main.c"、第14行:错误#138:表达式必须是可修改的 lvalue
代码行
_Q12 X、Y、Z;
Z =_Q12div (X、Y);
我认为、我提供了错误的路径、因此我直接将库文件复制到项目文件夹中。 我仍然收到此错误。
我在这里做错了什么?
解决问题。 X、Y、Z 可能是寄存器名称、因此我收到此错误。 我将其更改为 x1、y1和 z1。 代码构建和运行成功。
谢谢。