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.

MSP430FR5962: keyword "class" not found, am I missing an include file?

Part Number: MSP430FR5962

How do I set up an object class in code composer studio such as

class   Battery

{

public:

int    batvolt;

int    batpcnt;

void  getbatpcnt(void);

};

void Battery::getbatpcnt()

{

batvolt=scanadc(channel);

batpcnt=batvolt*0.5;

}

CCS does not recognize "class". It recognize "struct" but not class. Am I missing some include file? I can not find declaration for keyword "class".

Thanks

dkcheung@arrisnet.com

**Attention** This is a public forum