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 » Tue May 26, 2009 11:51 am

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.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Wed May 27, 2009 12:27 am

Please post only once.

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

Locked