Page 1 of 1

link statically to MFC

Posted: Tue May 26, 2009 11:51 am
by xmueller
Hello experts,
i can't link wxWidgets statically to MFC.
need mfc linked statically.

by changing link order, i could reduce error to only 1:

wxbase28d.lib(init.obj) : error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" ([email protected]@Z) already defined in nafxcwd.lib(afxmem.obj)

wxWidgets 2.8.10

all libs build with
multithreaded debug (/MTD)

vs 2008, sp1

any help is welcome. thank you.

Posted: Wed May 27, 2009 12:27 am
by Auria
Please post only once.

Using this one :