Tool/software: Code Composer Studio
Dear C28X compiler Champs,
A customer has a question in compiling C++ code when using TMS320F28377D.
The compiler version is ti-cgt-c2000_15.12.4.LTS
The question is when the customer uses a virtual function, but the compiler report error:
The code is :
int priv_func(char *recMsg)
{
recMsg = "\r\nHello World!\r\nNow test the F28377D printf! \n\0";
scia_msg(recMsg);
return 0;
}
struct myself_i {
virtual int priv_func(const char const *recMsg) = 0;
};
void main(void)
{
char *msg;
struct myself_i mySelf;
。。。。。。。
//priv_func(msg);
mySelf.priv_func(msg);
}
The compiler reports problems as follows: we have checked, there is ';'
Please kindly help to check and comments.
Thanks and best regards,
Hardy