Very simple codes located in the same file \'foo.h\':
class Xface { public: uint32_t m_tick; Xface(uint32_t tk) { m_tick=tk; } } std
Your code must be inside some function, you can't just put it in void :-) Try running the same code in main and see, what happens.