< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] Re: error LNK2005


Alan Stokes, Hello
 
Because some libraries(nafxcwd.lib??) you used is conflict with dum.
you can set option /FORCE:MULTIPLE in your project setting.
 
  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option /FORCE:MULTIPLE into the Additional Options box.

 
2005-10-11
----- Receiving the following content -----
Receiver: Alan Stokes
Time: 2005-10-10, 16:24:11
Subject: [reSIProcate] Re: error LNK2005

I had similar problems when I tried to build on VC 7.1, which didn't go away on a rebuild all. The workaround I found was to remove the LEAK_CHECK preprocessor definition in the DUM project settings. I suspect that defining it is generating some sort of clash on new/delete, although I never managed to work out exactly what the problem was.

- Alan
 

---------- Forwarded message ----------
From: "Scott Godin" < slgodin@xxxxxxxxxxxx>
To: "???" <jiajunying@xxxxxxxxxx>, "resiprocate-devel" <resiprocate-devel@xxxxxxxxxxxxxxxxxxx >
Date: Sat, 8 Oct 2005 14:15:14 -0400
Subject: RE: [reSIProcate] error LNK2005
If you've made sure all of the C-runtime library settings are the same in all or your projects - try a "re-build all".  VS.NET doesn't seem to be able to correctly detect what needs to be re-built if you change c-runtime library settings.


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf of 贾军营
Sent: Sat 10/8/2005 7:49 AM
To: resiprocate-devel
Subject: [reSIProcate] error LNK2005

resiprocate-devel,您好!
    hello everyone,i want develop a windows application(SIP Client)that resiprocate is the sip stack with vc7, when i build the there are some errors:

        nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in dum.lib(ServerInviteSession.obj)
    nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already defined in dum.lib(DialogUsageManager.obj)