Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

Problem with Visual C++ .net

Hello Experts:
Today I exported my project from VC++ 6.0 to VC++ .net. When i try to build the application in Release configuration I get "LINK : fatal error LNK1104: cannot open file 'mfc42.lib' ". and when I try to build the application in debug configuration I get

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)
libcimtd.lib(iostrini.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj)
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)
.\Debug/Eyemap.exe : fatal error LNK1169: one or more multiply defined symbols found


I did not have any of these problems when I was developing in VC++ 6.0. Can somebody please tell me how to get rid of these linker errors

Kiran
 
0
gkiran
Asked:
gkiran
1 Solution
 
naveenkohliCommented:
Clean all the intermediate files for you project. And recompile it from scratch. It may help.
0
 
gkiranAuthor Commented:
Thanks Naveen.
Your suggestion helped.

Kiran
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now