Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about the MFC and iostream

Status
Not open for further replies.

txjump

Programmer
May 17, 2002
76
US
Hi,

Im new to using the MFC but have been using plain ole c++ for a while. so im used to using <iostream> for cout but now im trying to build some apps that use the MFC and everytime i try to include the <iostream> file and
Code:
#include <afxwin.h>      // MFC core and standard components
#include <afxext.h>      // MFC extensions

i get the following errors:
nafxcwd.lib(afxmem.obj) : error LNK2005: &quot;void __cdecl operator delete(void *)&quot; (??3@YAXPAX@Z) already defined in libcmtd.lib(dbgdel.obj)

Debug/managedC++app.exe : fatal error LNK1169: one or more multiply defined symbols found

//********************

ive looked up this error before and tried to get ride of it properly but the only thing ive found that works is to use &quot;FORCE&quot; in the compile.

it doesnt matter if i also have using namespace std; in my code...ive tried to exclued and reinclude files in a different order...grrrrrr

can someone tell me why i cant use the includes together or tell me how to fix the problem in the .Net environment? any suggestion would be appreciated! :)

thanks
txjump
[ponytails2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top