E
Egbert Nierop \(MVP for IIS\)
Hi,
Why do I need to define a function as static (inside a .h file) to avoid the
following linker error?
CSession error LNK2005: "void __stdcall AllocString(unsigned short *
*,unsigned int)" (?AllocString@@YGXPAPAGI@Z) already defined in stdafx.obj
I know that the MSDN talks about this, but not why it is needed.
ms-help://MS.MSDNQTR.2005APR.1033/vccore/html/LNK2005.htm
and b.t.w. the file is included only once and it has #pragma once
Thanks...
Why do I need to define a function as static (inside a .h file) to avoid the
following linker error?
CSession error LNK2005: "void __stdcall AllocString(unsigned short *
*,unsigned int)" (?AllocString@@YGXPAPAGI@Z) already defined in stdafx.obj
I know that the MSDN talks about this, but not why it is needed.
ms-help://MS.MSDNQTR.2005APR.1033/vccore/html/LNK2005.htm
and b.t.w. the file is included only once and it has #pragma once
Thanks...