Dave C
August 15th, 2003, 10:51 AM
I'm trying to import an application from VC6 to .NET and I can't get it to link in debug configuration. It builds and runs OK in release mode.
The error I get is this:
HIDCPS error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
I've seen the KB article that talks about this, but it hasn't led me anywhere. It says the error happens if the CRT libraries link before the MFC libs. Each .cpp in my project has #include "StdAfx.h" as the first line, and that's supposed to make this happen.
This is my first C++.NET experience and I have no idea how to interpret the .NET project settings. For the life of me, I can't see any differences between Release and Debug configurations that would explain this. Can anyone please help?
The error I get is this:
HIDCPS error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
I've seen the KB article that talks about this, but it hasn't led me anywhere. It says the error happens if the CRT libraries link before the MFC libs. Each .cpp in my project has #include "StdAfx.h" as the first line, and that's supposed to make this happen.
This is my first C++.NET experience and I have no idea how to interpret the .NET project settings. For the life of me, I can't see any differences between Release and Debug configurations that would explain this. Can anyone please help?