I am using __declspec(dllimport/export) on a debug version of new as such:
#ifdef _DEBUG
DECLSPECCORE extern void* operator new(unsigned int size, const char* file, int line);
extern void* operator new[](unsigned int size, const char* file, int line);
extern void operator delete(void* address, const char* file, int line);
extern void operator delete[](void* address, const char* file, int line);
extern void Delete(void* address);
#define LUDO_NEW new(__FILE__, __LINE__)
#define LUDO_DELETE delete
#endif
This is causing me to get
error C2375: 'operator new': redefinition; different linkage.
Why is this and how can you fix it? This is the only project that I am compiling right now.