I have this:
a.h
:
class a
{
}
void func(){} //some golobal function
b.h
:
include "a.h"
class b : public a
{
}
b.cpp
:
#include "b.h"
I get the error:
error LNK1169: one or more multiply defined symbols found
I think I get the error because global function defined twice. I try to put extern
before the function but is doesnt work. I use also #ifndef..
and I still get error. How can solve this problem?