工具/软件:Code Composer Studio
你好
我正在尝试编译我的代码,但我不断地收到错误。
错误代码如下。
===================================================================================
第73行:typedef结构{ int quot, rem;} div_t;
第173行: _code_access div_t div (int _numer,int _denom);
===================================================================================
错误消息
====================================================================================================================================================================================================================================================================================================================================================================================================
#20 identifier "div_t" is undefined .ccsproject /Core_- line 173,external location: 8.1 C:\ti\ccsv6\tools\compiler\ti-CGT-C6000_Core.0\include\stdlib.h C/C++ problem
#66预期为";" .ccsproject /Core_- line 73,外部位置:8.1 C:\ti\ccsv6\tools\compiler\ti-CGT-C6000_Core.0\include\stdlib.h C/C++ problem
====================================================================================================================================================================================================================================================================================================================================================================================================
我正在C6000编译器中使用CCS。
我的div_t已在stdlib.h中定义
我不知道CCS为什么找不到DIV_t定义。 我没有更改stdlib.h的任何内容
我已经搜索了这个问题,但我可以通过使用“回复”来解决这个问题。 如何解决此问题?