> The problem I'm having is that when I switch the one line above with the
> line that reads simply
> 
>       SubClass* sc = new SubClass;

[after having defined SubClass like this:]

     class BaseClass {
     public:
         BaseClass() {}
         virtual void setVal();
         short val;
     };
     class SubClass : public BaseClass {
     public:
         SubClass() {}
         void setVal() {val=2;}
     };


> I get an error when linking.

Which is correct since you don't define BaseClass::setVal() . Try making it 
pure virtual or defining it.


> I get the following error when linking:
> 
>       Link Error : Exception68K.cp: '__rethrow' referenced
>       from '__unexpected' is undefined.

I have to admit that this isn't the linker error I'd have expected.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to