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.

CCS V5 build Errors



Hi,

I have installed CCS V5.4.0.00091 on a Win-32 machine with Windows XP. The installation package also contains KeyStone-II emulation pack and MCSDK 3.0.0.11 for K2 devices. After install when I try to build a project, I am getting error messages of which some are shown below.

"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/cstdlib", line 16: error #340: more than one instance of overloaded function "std::abs" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/cstdlib", line 21: error #340: more than one instance of overloaded function "std::div" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/cstdlib", line 31: error #340: more than one instance of overloaded function "std::abs" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/cstdlib", line 36: error #340: more than one instance of overloaded function "std::div" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 70: error #339: linkage specification is incompatible with previous "operator delete"
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 72: error #339: linkage specification is incompatible with previous "operator new"
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 75: error #340: more than one instance of overloaded function "operator new" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 80: error #340: more than one instance of overloaded function "operator new" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 88: error #339: linkage specification is incompatible with previous "operator delete[]"
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 90: error #339: linkage specification is incompatible with previous "operator new[]"
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 93: error #340: more than one instance of overloaded function "operator new[]" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 97: error #340: more than one instance of overloaded function "operator new[]" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 105: error #340: more than one instance of overloaded function "operator delete" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 108: error #340: more than one instance of overloaded function "operator delete[]" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 111: error #340: more than one instance of overloaded function "operator delete" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/new", line 114: error #340: more than one instance of overloaded function "operator delete[]" has "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/iosfwd", line 18: error #803: this declaration may not have extern "C" linkage
"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include/iosfwd", line 106: error #803: this declaration may not have extern "C" linkage

I have not figured out whether the errors are caused by some problem during installation or some other compatibility issues. The install did not report any problem.

Can anybody suggest the work around or how to fix these..?

Please note that a clean uninstall and re-install did not help...

Thanks,

Zahid

  • I've never seen this.  But I'm pretty sure you have an C linkage block in effect at the wrong point.  Something like ...

    extern "C" {
    // many lines later
    #include <cstdlib> 

    I tried a similar example, and saw the same diagnostics.  You need to limit the range of the extern "C" block to C code only.

    Thanks and regards,

    -George