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.

Error when compling C6713

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I encounter a problem during my compliation. The error message is " d:\ccstudio_v3.1\c6000\include\tistdtypes.h(72):fatal error c1189:#error : <tistdtypes.h> is not supported for this target "  I'm using CCS v3.1.

Anyone know the problem?

  • Hi BP,

    If you look at the file tisdttypes.h:

    /* Handle the 6x ISA */

    #if defined(_TMS320C6X)

    /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */

    typedef unsigned int Uint32;

    typedef unsigned short Uint16;

    typedef unsigned char Uint8;

    /* Signed integer definitions (32bit, 16bit, 8bit) follow... */

    typedef int Int32;

    typedef short Int16;

    typedef char Int8;

    /* Handle the 54x, 55x and 28x ISAs */

    #elif defined(_TMS320C5XX) || defined(__TMS320C55X__) || defined(_TMS320C28X)

    /* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */

    typedef unsigned long Uint32;

    typedef unsigned short Uint16;

    typedef unsigned char Uint8;

    /* Signed integer definitions (32bit, 16bit, 8bit) follow... */

    typedef long Int32;

    typedef short Int16;

    typedef char Int8;

    #else

    /* Other ISAs not supported */

    #error <tistdtypes.h> is not supported for this target

    So you just need to define the symbol TMS320C6X in your project like:

    #define _TMS320C6X

     

  • Hi Mariana,

      I tried to include

      #define _TMS320C6X in my program, but it still show the same problem.

    The header files I included is:

    #include "HDwlib.h"
    #include "Utillib.h"
    #include <cstdlib>
    #include <ctype>
    #define _TMS320C67X

    I also use #define _TMS320C67X

    The directories I included is D:\ccstudio_v3.1\c6000\csl\include; D:\ccstudio_v3.1\c6000\bios\include

    Could you advise me? Thank you very much.

  • Hi BP,

    Make sure you define the symbol _TMS320C6X before including the header files, or better yet, right click on your project, select Build Options..., select the Compiler tab, category Preprocessor, and put the symbol _TMS320C6X at the field Pre-defined symbol (-d). If there is already a symbol there, separate the symbols using ;