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.

identifier "class" is undefined

Other Parts Discussed in Thread: MSP430FR5735

In CCS 5, I generated a class by using File=>New=>Class and called it CharQueue.  Which generated two files, CharQueue.h and CharQueue.cpp.  the listing of the class is below.

class CharQueue {
private:
void start_pp(); // incruments start pointer
void end_pp(); // incruments end pointer
// shoudl be private
unsigned int start; // First character in buffer
unsigned int end; // Next open Character Character in buffer
unsigned char buffer[BUFF_LEN];

public:
CharQueue(); // constructor
int enqueue(unsigned char data[], int data_length); // add string to stack
int enqueue(unsigned char); // add char to stack - overloaded
int buffer_size(); // returns true if stack is not empty
char dequeue_char(); // deque char from stack (DISABLES INTERRUPTS)
};

When i build all I get the following errors:

expected a ";"

identifier "class" is undefined

My target is MSP430FR5735.  Why would I get these errors?  Looking at compiler reference, it handles C++ classes.

**Attention** This is a public forum