My main file: int main(){ module_management *x; x.printg(); } On Tue, 2009-10-27 at 10:49 +0000, Andrew Haley wrote: > Mohsen Pahlevanzadeh wrote: > > i define an object from class base & call dosomthing & get gollowing > > error: > > request for member ‘dosomthing’ in ‘base’, which is of non-class type > > ‘Base*’ > > Please post the source. > > Andrew.