-
about LNK2005
hi,guys
I meet LNK2005 when I link the program from VC6 to VC.net.
the error follows:
Searching G:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\libcimtd.lib:
libcimtd.lib(ifstream.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
libcimtd.lib(ofstream.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
anyone knows how could solve this problem,thx in advance.
Ephemera
-
it's a MFC application?
there are many portability issues when compiling a MFC 6.x project in MFC 7
Read the documentation...
-
i use the linker option /FORCE:MULTIPLE,but i dont know if there is obscure problem.
thanks for ur advises.