Re: [wxVTK] running wxVTK in VisStudio 2005
Brought to you by:
malat
From: Nigel N. <nN...@au...> - 2007-03-17 09:02:22
|
Hi Jason, > I've been trying to figure out how to use wxVTK in my project, > but I get the following LNK2005 errors when I use CMake on wxVTK > and then try to run the resulting project: >=20 > error LNK2005: _malloc already defined in MSVCRTD.lib(MSVCR80D.dll) = LIBCMTD.lib > error LNK2019: unresolved external symbol = wxSashWindow::SetSashVisible(...)" Looks like some of the libs were built against the single-threaded CRT, = while=20 others were built against the multi-threaded CRT. This results in = multiple=20 versions of the CRT functions, giving error LNK2005. Check that the = build=20 settings are the same for all libs, --> [Properties / C/C++ / Code Generation / Runtime Library] Try setting all to Multi-threaded, and consistent (MT,MTd,MD,MDd) MT : static linkage MTd: static linkage [debug] MD : dynamic linkage MDd: dynamic linkage [debug] Regarding error LNK2019: unresolved external symbols, you may just need=20 to link your sample with the wx lib that contains wxSashWindow, etc.=20 Last time I looked, this was wxAdvanced, so try adding: wxmsw28_adv.lib [release] wxmsw28d_adv.lib [debug] Nigel |