[reSIProcate] Using reSIProcate with MFC classes in a GUI application
Hi,
I am trying to use the resiprocate stack with MFC in a
simple GUI based application and I can not get it to
compile. What settings do I need to have in place to
avoid the LNK2005 multiply defined errors?
I tried changing the settings as seen on an earlier
posting, but that didn't work for me!
My environment is: Visual Studio.NET version 7.1 on
Windows
Steps I took are:
1. In Visual Studio, open up the resiprocate .sln
file
2. Right click on the solution-->add a new projectMFC
Application-->Type is Dialog Based, with windows
sockets. Test that the application compiles and runs
successfully
3. Add in ares, dum, and resiprocate as project
dependencies
4. Copy in the basicCall.cxx file, rename the main
function so that it is called by the GUI. In the
project, remove Precompiled headers.
5. Compile.
The errors I get are:
error LNK2005: "void __cdecl operator delete(void
*,int,char const *,int)" (??3@YAXPAXHPBDH@Z) already
defined in dum.lib(DialogUsageManager.obj)
error LNK2005: "void * __cdecl operator new(unsigned
int)" (??2@YAPAXI@Z) already defined in
dum.lib(DialogUsageManager.obj)
I've tried various combinations of:
Project Properties-->General-->Use of MFC (either as a
standard libraries, static DLL, shared DLL)
and
Project Properties-->C/C++-->Code Generation (As
MultiThreaded Debug, and other options in the drop
down)
I'd welcome any ideas/thoughts on what I should try to
make this work!
Thanks for your help.
Jennifer
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com