Tool/software: Code Composer Studio
Hello
I am trying to compile my code but I get errors continuosly.
Error codes are below.
===============================================
line73 : typedef struct { int quot, rem; } div_t;
line173: _CODE_ACCESS div_t div(int _numer, int _denom);
===============================================
Error msgs
=============================================================================================================================================
#20 identifier "div_t" is undefined .ccsproject /Core_- line 173, external location: C:\ti\ccsv6\tools\compiler\ti-cgt-c6000_8.1.0\include\stdlib.h C/C++ Problem
#66 expected a ";" .ccsproject /Core_- line 73, external location: C:\ti\ccsv6\tools\compiler\ti-cgt-c6000_8.1.0\include\stdlib.h C/C++ Problem
=============================================================================================================================================
I am using CCS with C6000 compiler.
My div_t is already defined in stdlib.h.
I don't why CCS can't find div_t definition. I have not changed anything of stdlib.h.
I have searched about this problem but I can solve this by using reply. How can I solve this problem?