Quella riga va messa in uno solo dei file .cpp, e non nel file .h.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum