I use keil development environment STM32 c + + program has been a few years time, feel very convenient and practical, recently in transforming a AVR when old projects to rewrite with c + +, you want to use Atmel Studio 7 environment, found that a compiler error doesn't solve about inheritance, consult ace here help me have a look, thanks a lot!
Here is an example of
//-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --//
The class CAAA
{
Public:
CAAA () {};
//~ CAAA () {};
Virtual void Init (void)=0;
Protected:
Private:
};
The class CBBB: public CAAA
{
Public:
CBBB () {};
Void Init (void) {};
Protected:
Private:
};
CBBB BBB.
//-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --//
It compiles without error, but I need a base class destructor in the CAAA, but can make the ~ CAAA () {}; Function, compile error:
Severity Code Description Project File Line
The Error ld returned 1 exit status GccApplication1 collect2. Exe 0
Somehow, this kind of writing I in Keil MDK STM32 and IAR STM8 has been in use for a long time there is no problem, I don't know the AVR compiler what was so special about, what kind of special processing,
Thank you for your bosses to give directions, thank you very much