compiling wxWidgets, MS VC 2003 .Net versus MS VS 2005
Carsten A. Arnholm
arnholm at offline.no
Sun Jul 15 05:05:21 PDT 2007
Hi,
Torsten Mohr wrote:
> When linking my code with the wxWidgets libraries that were compiled
> with MS VS 2005 i get heaps of version warnings and finally a missing
> reference to CxxFrameHandler3.
>
> When i compile wxWidgets with MS VC 2003 .NET everything works fine.
>
> Did i chose wrong options?
Probably. I am using MS VS 2005 Express C++ compiler/linker in the
Code::Blocks IDE to make wxWidgets programs, and it works fine after some
tweaking (using wxWidgets ANSI build on Windows). On another machine I have
done the same using MS VS 2005 (not express version) + Code::Blocks IDE, and
that works too (it is easier than using express version).
For C++ compiler settings (Release) I use: multithreaded DLL Runtime [/MD]
For linker (excerpt from Code::Blocks project file)
<Add option="/NODEFAULTLIB:libcmt.lib" />
<Add option="/NODEFAULTLIB:msvcrtd.lib" />
<Add library="msvcrt.lib" />
<Add library="wxmsw28_core.lib" />
<Add library="wxbase28.lib" />
<Add library="wxbase28_net.lib" />
<Add library="wxbase28_odbc.lib" />
<Add library="wxbase28_xml.lib" />
<Add library="wxtiff.lib" />
<Add library="wxjpeg.lib" />
<Add library="wxpng.lib" />
<Add library="wxzlib.lib" />
<Add library="wxregex.lib" />
<Add library="wxexpat.lib" />
<Add library="wxmsw28_adv.lib" />
<Add library="wxmsw28_aui.lib" />
<Add library="wxmsw28_dbgrid.lib" />
<Add library="wxmsw28_gl.lib" />
<Add library="wxmsw28_html.lib" />
<Add library="wxmsw28_media.lib" />
<Add library="wxmsw28_qa.lib" />
<Add library="wxmsw28_richtext.lib" />
<Add library="wxmsw28_xrc.lib" />
<Add library="winmm.lib" />
<Add library="comctl32.lib" />
<Add library="rpcrt4.lib" />
<Add library="wsock32.lib" />
<Add library="oleacc.lib" />
<Add library="odbc32.lib" />
<Add library="kernel32.lib" />
<Add library="user32.lib" />
<Add library="gdi32.lib" />
<Add library="winspool.lib" />
<Add library="comdlg32.lib" />
<Add library="advapi32.lib" />
<Add library="shell32.lib" />
<Add library="ole32.lib" />
<Add library="oleaut32.lib" />
<Add library="uuid.lib" />
> Are there known problems with wxWidgets and MS VS 2005?
Only that it can be a pain to set up correctly, I think. This is not
particular to wxWidgets, the MS runtime libraries can be difficult to handle
sometimes.
> Is there a way around this?
Yes :-) See above for some hints.
> Is it possible to compile wxWidgets with MinGW / MSYS and continue to
> work with the libraries on MS VC ?
I don't know. I would use one compiler only.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list