Hi,
I have a class,
class c1 {
public:
void methode1 (long);
};
and I inherited an other class
class c2: public c1 {
public:
void methode2 (void);
};
void c2::methode2 (void) {
methode1 (1);
}
This is a very simple example for the class inheritance, no? But this not
working, because the g++ compiler wrote the follow error:
In function 'c2::methode2(void)':
undefined reference to 'c1::methode1(long)'
collect2: ld returned 1 exit status
What is the problem? Please help! Thanks
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list