I am converting my project to use a DLL and am trying to break my Singleton class to avoid using templates.
My class, LudoMemory , originally inherited from Singleton . I'm trying to give it functions to destroy and create itself now, and my main engine does not rely on Singleton .
I wrote a simple way to destroy:
LudoMemory *memory_Singleton = NULL; void LudoMemory::Destroy() { LUDO_SAFE_DELETE(m_Singleton) }
and when I start the program (without compiler errors) I get this error:
Procedure entry point? Destroy @LudoMemory @@ SAXXZ could not be located in the dynamic link library LudoCore.dll
LudoCore is the project that owns LudoMemory . Why is this happening? How can I solve it?
c ++ dll linker singleton visual-studio-2005
user189320
source share