I know you\'ve seen 21728517 people asking for help with this one but after searching and reading about this I really can\'t figure this one out. I know this error, I\'ve se
Define the functions in misc.cpp
, rather than in misc.h
.
The problem is probably due to #include
ing misc.h
in multiple CPP files. the header guards prevent a header from being included multiple times in the same translation unit, but each CPP file is (typically) a separate translation unit. So those functions end up getting defined twice -- once in each translation unit.