I am converting my project to use DLLs and am trying to break apart my Singleton
class to avoid using templates.
My class, LudoMemory
, originally inherited from Singleton
. I am trying to give it the functions to destroy and create itself now and have my main engine not rely on the Singleton
.
I have written a simple destroy method like such:
LudoMemory *memory_Singleton = NULL;
void LudoMemory::Destroy()
{
LUDO_SAFE_DELETE(m_Singleton)
}
and upon running the program (no compiler errors) I recieve this error:
The procedure entry point ?Destroy@LudoMemory@@SAXXZ could not be located in the dynamic link library LudoCore.dll
LudoCore
is the project that LudoMemory
belongs to. Why is this happening? How can I solve it?