error LNK2005: using MFC with ATL 
Author Message
 error LNK2005: using MFC with ATL

I am working on a full control using ATL and static link to MFC library.
After I moved my project to different directory, I suddenly get following
link errors:


LIBCMTD.lib(dllmain.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator

nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void


LIBCMTD.lib(dllmain.obj); second definition ignored
nafxcwd.lib(afxmem.obj) : warning LNK4006: "void * __cdecl operator

second definition ignored
nafxcwd.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator

second definition ignored

Does anyone have any idea what could be wrong? Thanks for your help!

Hao.



Tue, 08 Oct 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. using _variant_t rather than _bstr_t causing linker error LNK2005

2. link problem, error LNK2005 using CSocket

3. PRB: LNK2005 Errors When Link C Run-Time Libraries Are Linked Before MFC Libraries (Q148652)

4. Help! Win32/MFC LNK2005 Error

5. LNK2005 and LNK2001 errors using CString

6. Link Errors : error LNK2005 and LNK2004

7. Problems using an MFC/ATL Multithreaded COM Obj with an MFC app

8. LNK2005 Errors

9. error LNK2005

10. LNK2005 error

11. VC 7.0 Linker Error LNK2005, LNK4006, LNK1169 _DllMain@12 already defined in MyDll.obj

12. LNK2005 Errors

 

 
Powered by phpBB® Forum Software