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.

Compiler/TM4C1290NCPDT: Identifier "const_cast" is undefined

Part Number: TM4C1290NCPDT


Tool/software: TI C/C++ Compiler

CCS v 8.3.0.00009

The following header code generates several odd error messages:

extern  void  Info_Msg( char* );
inline  void  Info_Msg( const char* pMsg ) { Info_Msg(const_cast<char*>(pMsg)); }

error #148: declaration is incompatible with "void Info_Msg(char *)"

error #20: identifier "const_cast" is undefined

error #29: expected an expression

This compiles successfully in Sourcery Codebench IDE 2015.12-104  (gcc)