link statically to MFC

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Locked
xmueller
Earned a small fee
Earned a small fee
Posts: 13
Joined: Mon May 25, 2009 8:13 pm

link statically to MFC

Post 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)" (??3@YAXPAXHPBDH@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.
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

Please post only once.

Using this one :
http://forums.wxwidgets.org/viewtopic.php?t=24291
"Keyboard not detected. Press F1 to continue"
-- Windows
Locked