How can I include implmentation in a header file and keep it from getting
multiply defined when it's contents are accessed by several .cpp files?
I'm getting the following errors and the strange thing is that I'm using the
class/functions in other files in my project as well as EMailMessage.cpp,
but it seems to be the only one that's conflicting with stdafx.cpp. I am
using precompiled headers and I put the header in question in stdafx.h. I
also inclosed the implementations with #ifndef, etc...
EMailMessage.obj : error LNK2005: "public: bool __thiscall
defined in DVEmailSupport.obj
EMailMessage.obj : error LNK2005: "public: double __thiscall
in DVEmailSupport.obj
StdAfx.obj : error LNK2005: "public: bool __thiscall
defined in DVEmailSupport.obj
StdAfx.obj : error LNK2005: "public: double __thiscall
in DVEmailSupport.obj
EMailMessage.obj : warning LNK4006: "public: bool __thiscall
defined in DVEmailSupport.obj; second definition ignored
EMailMessage.obj : warning LNK4006: "public: double __thiscall
in DVEmailSupport.obj; second definition ignored
StdAfx.obj : warning LNK4006: "public: bool __thiscall
defined in DVEmailSupport.obj; second definition ignored
StdAfx.obj : warning LNK4006: "public: double __thiscall
in DVEmailSupport.obj; second definition ignored
Creating library Debug/EMailSupport.lib and object Debug/EMailSupport.exp
Debug/EMailSupport.dll : fatal error LNK1169: one or more multiply defined
symbols found
Can anyone help?
Thanks,
Kevin