Hello All,

Mine is a simple application. I am getting the following
linker errors.

uafxwced.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
new(unsigned int)" (??2@YAPAXI@Z) already defined in
coredll.lib(COREDLL.dll)

uafxwced.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
delete(void *)" (??3@YAXPAX@Z) already defined in
coredll.lib(COREDLL.dll)


Can anyone please help me.

I am getting the above error when I use any Afx function or its
getting linked properly.

For wg I am using AfxGetResourceHandle(). if I am not using this its
getting compiled 100% fine.

Thanks
Rakesh


Some part of my my code below

HINSTANCE hInst = AfxGetResourceHandle( );

if ( TRUE == PlaySound (TEXT("SND_BEEP5 | SND_BEEP5"), hInst,
SND_SYNC))
LogMessage(tcFunction, COMM_LOG_VERBOSE, TEXT("Play Sound in Reset
Link Success"));
else
LogMessage(tcFunction, COMM_LOG_VERBOSE, TEXT("Play Sound in Reset
Link Fail"));