LNK2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jemai_linda@yahoo.fr

    #1

    LNK2005

    Hi,

    When i build my project i have the following linking errors:

    nafxcwd.lib(afx mem.obj) : error LNK2005: "void * __cdecl operator
    new(unsigned int)" (??2@YAPAXI@Z) déjà défini(e) dans
    libcpmtd.lib(ne wop.obj)
    nafxcwd.lib(afx mem.obj) : error LNK2005: "void __cdecl operator
    delete(void *)" (??3@YAXPAX@Z) déjà défini(e) dans
    libcmtd.lib(dbg del.obj)

    For information, i'm working on the C++.NET language and i'm using a
    software solution api with external libraries. I encountred a similar
    problem when working on a win32 console application project and i
    resolved it by ignoring the libraries that caused the problem and
    reinserting them in the right order (in the project properties). When i
    took the same code into a C++.NET project, this procedure didn't work.

    Can anyone help me solving this problem !!!

  • Puppet_Sock

    #2
    Re: LNK2005

    jemai_linda@yah oo.fr wrote:
    When i build my project i have the following linking errors:
    >
    nafxcwd.lib(afx mem.obj) : error LNK2005: "void * __cdecl operator
    new(unsigned int)" (??2@YAPAXI@Z) déjà défini(e) dans
    libcpmtd.lib(ne wop.obj)
    nafxcwd.lib(afx mem.obj) : error LNK2005: "void __cdecl operator
    delete(void *)" (??3@YAXPAX@Z) déjà défini(e) dans
    libcmtd.lib(dbg del.obj)
    >
    For information, i'm working on the C++.NET language
    [snip]

    It looks like you;ve got the wrong libraries linked to your project.
    Or got them linked incorrectly.

    For more and better help you want to look in a newsgroup related
    to microsoft stuff. Something with windows or DOS or .NET in
    the name. Check out groups.google.c om for something in the
    microsoft.publi c.* groups. Chances are good the answer is just
    waiting there for you to google it up.
    Socks

    Comment

    Working...