I am using __declspec (dllimport / export) in the debug version of the new one 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
It makes me get
error C2375: "new operator": redefinition; different connection.
Why is this and how can you fix it? This is the only project that I am compiling right now.
user189320
source
share