For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > July 2006 > VS2005 VC++ linker error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VS2005 VC++ linker error
Hugh Garse

2006-03-06, 3:57 am

I can compile my C++ MMC app non-unicode with no errors.
If I make it unicode I get one linker error:

uafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
AFX_MAINTAIN_STATE2::~AFX_MAINTAIN_STATE
2(void)"
(??1AFX_MAINTAIN_STATE2@@QAE@XZ) already defined in mmc.lib(apimfc.obj)

Any ideas?

Rgds,
Hugh



klevgard

2006-07-10, 2:35 pm

quote:
Originally posted by Hugh Garse
I can compile my C++ MMC app non-unicode with no errors.
If I make it unicode I get one linker error:

uafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall
AFX_MAINTAIN_STATE2::~AFX_MAINTAIN_STATE
2(void)"
(??1AFX_MAINTAIN_STATE2@@QAE@XZ) already defined in mmc.lib(apimfc.obj)

Any ideas?

Rgds,
Hugh



///////// MMC.LIB UAFXCWD.LIB UAFXCW.LIB /////////////
I believe you need to force VC8.0 to load UAFXCWD.LIB before MMC.LIB. You can do this via the project property settings: Linker | Input | Additional Dependencies.

It worked for me.

Paul 7/10/06
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com