C++ static library, Can't inherited class
Hi, I'm creating a static library(I'm new to this) with C++ but failed to compile it, this happened when I try to inherited the class/object.
Here is the sources:
##Pin.h
######
class Pin : public Object {
public:
virtual ~Pin(){}
protected:
Pin_U Pin;
protected:
virtual void Configure(void){}
public:
virtual void Finalize(void);
virtual void Configure(
virtual uint32_t Read(void) = 0;
virtual int32_t ReadBit(int Bit) = 0;
virtual void Write(uint32_t Val) = 0;
virtual void WriteBit(int Bit, uint32_t Val) = 0;
};
##GPIO.h
#######
class GPIO : public Pin{
public:
GPIO(Pin_U Pin){
this->Pin = Pin;
}
GPIO(Pin_U Pin, GPIOSettings_TPtr ptSettings){
this->Pin = Pin;
this-
}
virtual ~GPIO(){
}
private:
GPIOSettings_T SettingsT;
public:
void Configure(void);
void Configure(
void Configure(
};
##GPIO.cpp
######## Implement GPIO.h's methods.
...
...
uint32_t
GPIO::Read(void){
return(
}
int32_t
GPIO::ReadBit(int Bit){
return(
}
void
GPIO::Write(
GPIOObj.
}
...
...
##After compiled, I got errors.
#######
'Building file: ../System/
'Invoking: Cross ARM C++ Compiler'
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-
../System/
GPIO::
../System/
GPIO::Read(void){
... and so on.
Any idea?
Build System Information:
OS: Windows 7 Professional 64-bit SP2
IDE: Eclipse Keplar 32-64 bit + GNU ARM Eclipse plugin
Compiler: gcc-arm-
Build tools: Codesourcery's make and rm
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Terry Guo
- Solved:
- Last query:
- Last reply: