C++ using STM32
Hello!
I have the following problem:
- I have used some sample code provided by ST from which I was able to
compile and run the graphic display demonstration (with ST logo and butterfly
animation).
- I have added a class for the LCD, which takes care of the whole initialization
and until here everything works fine, the code that was in main() is now in the
LCD class file, but it doesn’t cause any problem.
Now here is the problem:
- I wanted to add a class in stm32469i_discovery_lcd.h / .cpp.
Just to make it simple, I first added this
class Brol {
public:
Brol(){}
virtual ~Brol(){}
protected:
private:
};
I have put it outside of the ifdef cplusplus extern “C” area, but the IDE
says that class not a type. Here is the exact message.
../Utilities/STM32469I-Discovery/stm32469i_discovery_lcd.h:154:1: error: unknown type name ‘class’
class Brol
^
Does anybody have an idea why class is understood in some parts and not in
some other parts of the program?
Thanks,
Pascal