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.

stdbool.h bug?

Other Parts Discussed in Thread: CCSTUDIO

Including <stdbool.h> in a *.c file causes a compile error pointing at line 19 of stdbool.h

using C6000 CGT-7.2.0

Regards

Kris

  • Kris,

    Are you compiling with --gcc or -pr options? If so, you may be running into bug # SDSCM00039252.

    You can view the bug details using the SDOWP link in my signature and entering SDSCM00039252 under Find Record ID box. This bug is fixed in CGT v7.2.2, so if it is the same issue you are running into, you could update to 7.2.2.

    If using CCS4, you can update by going to Help->Software Updates->Find and Install, Search for new features to install, hit Next. Select "Code Generation Tools Updates". Hit Finish. Expand C6000 Code Generation Tools and you should find version 7.2.2 to select and install.

     

  • Thanks for the quick response.

    Aarti said:

    Kris,

    Are you compiling with --gcc or -pr options? If so, you may be running into bug # SDSCM00039252.

    yes,

    $ "E:\CCS_5_0_2_00006\ccsv5\tools\compiler\c6000\bin\cl6x" -g -pr -rtti -pden -
    mv6400+ -i"C:/Aplikacje/TI/CCStudio_v3.3/C6000/csl/include" -i"C:/Aplikacje/TI/
    CCStudio_v3.3/C6000/xdais/include" -i"C:/CCStudio_v3.3/bios_5_33_03/packages/ti
    /bios/include" -i"C:/CCStudio_v3.3/bios_5_33_03/packages/ti/rtdx/include/c6000"
     -i"E:/CCS_5_0_2_00006/ccsv5/tools/compiler/c6000/include" stdbool_bug.c
    "E:/CCS_5_0_2_00006/ccsv5/tools/compiler/c6000/include/stdbool.h", line 19: error #85: invalid combination of type specifiers
    1 error detected in the compilation of "stdbool_bug.c".

    $ cat stdbool_bug.c
    #include <stdbool.h>

    I will try to upgrade CGT to 7.2.2. I cannot do it through Help->Software Updates, because the computer I work on doesn't have access to the Internet. Can I download the update site somehow?

    Cheers,

    Kris

  • Kris,

    Check this page: http://processors.wiki.ti.com/index.php/Compiler_Releases. This page has a link to a compiler download page from where you can download CGT 7.2.2. You still need to get to a computer with internet connection but it does not need to have CCS installed.

    Once you have this version of CGT installed, follow the steps in this page to set up CCS to use the new version: http://processors.wiki.ti.com/index.php/Compiler_Installation_and_Selection

     

  • I've installed CGT 7.2.2, and the bug is gone.

    Cheers,

    Kris