Tool/software: TI C/C++ Compiler
We are currently having an issues when trying to compile the ARM TI compiler which is 16.12. 0STS(Short term support), but are having the following error.
Note: We use code composer studio development environment for compilation.
|
<Linking> error: symbol "errno" has already been defined >> Compilation failure >> Compilation failure >> Compilation failure |
We have attempted the following:
- tested with all of the compiler version after the ARM compiler 5.2.9 release with no luck.
- un-defined the macro in project properties, but it does not works.
- disabled the “ errno“ macro by changing #ifndef _ERRNO to #ifdef _ERRNO in below files so that the #define errno would get disable, but this did not work.
|
C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.12.0.STS\include\errno.h C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.12.0.STS\libs\src\errno.h C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.12.0.STS\libs\src\errno.h |
We also tried in latest long term support(16.9.0LTS) compilers but the same compile error occurs.
Currently we believe the “errno” is defined in this “rtsv7M4_T_le_eabi lib” library which is available in the below folder location, but we are not able to disable this macro from this library.
|
C:\ti\ccsv6\tools\compiler\ti-cgt-arm_16.12.0.STS\lib\ rtsv7M4_T_le_eabi lib |
How can we disable this macro for an error free compilation?