Undefined Symbols When Inheriting From TObject


I am trying to build a library with a class that inherits from TObject on OS 10.8. In my class definition, I have the required:
class TICoolOut : public TObject

I also built the dictionary with rootcint

When I build, I get:
Undefined symbols for architecture x86_64:
“TObject::SavePrimitive(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*)”, referenced from:
vtable for TICoolOut in TiCoolOutDict.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any help would be greatly appreciated.



Can you post the code to build that library, e.g. the compiler command line?