CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: about LNK2005

  1. #1
    Join Date
    Nov 2003
    Posts
    24

    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

  2. #2
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    it's a MFC application?

    there are many portability issues when compiling a MFC 6.x project in MFC 7

    Read the documentation...

  3. #3
    Join Date
    Nov 2003
    Posts
    24
    i use the linker option /FORCE:MULTIPLE,but i dont know if there is obscure problem.
    thanks for ur advises.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured