Multpile definition of a header declared variable
This is already a violation of the One Definition Rule. The simple answer is “don’t”. You can only declare in a header, via extern
, and define in a single .cpp file.
2
solved Multpile definition error of a header declared variable when there’s just one definition/declaration [duplicate]