Hello, I create a very simple class: class TCoord : public TObject { public: TCoord(); Float_t& x() {return pos[0];}; Float_t& y() {return pos[1];}; Float_t& z() {return pos[2];}; ClassDef(TCoord,1) private: TArrayF pos; }; With this implementation: ClassImp(TCoord) //_______________________________________________________________________ TCoord::TCoord() { ///////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////// pos.Set(3); } But I get this link error: Linking ... /bin/ld: Unsatisfied symbols: TCoord::ShowMembers(TMemberInspector&,char*) (code) Virtual table for class 'TCoord': first non-inline virtual function in 'TCoord' is not defined. (1930) How may I solve this problem an why I get this error ? do I need to derive TCoord from TOject ? Thank you. -- Patrice Lebrun Charge de recherche au CNRS. Institut de Physique Nucleaire de Lyon. Groupe HEE1. tel : 04 72 44 84 43
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET