Mulitply defined symbols...
Posted on 1998-07-09
I'm doing something that seems pretty simple, but it's not working, maybe somebody could shed some light...
I have a header file which very simply defines some arrays with intialized values. I put preprocessor sentry code in there to the effect of:
This should keep the compiler from compiling this twice, right? And yet I keep getting this error:
cpluginwindow.obj : error LNK2005: "char const * const NB_Single_SFormatList" (?NB_Single_SFormatList@@3PBDB) already defined in cchildviewerwnd.obj
cpluginwindow.obj : error LNK2005: "char const * const NB_Multi_SFormat" (?NB_Multi_SFormat@@3PBDB) already defined in cchildviewerwnd.obj
The header is included in two .cpps. Cpluginwindow.cpp CChildViewerWnd.cpp.