1. 下载gtkmm的win32 bundle
2. sourceforge上下载gladewin32
http://sourceforge.net/projects/gladewin32/files/glade-win32/3.6.1/Glade3-3.6.1.exe
3. 写批处理
PUSHD
call vcvars32.bat
POPD
set GTKMM_BASEPATH=F:/gtkmm
cl.exe /EHsc /FAs /Zi /D_WIN32_WINNT=0x0501 test.cpp /I"%GTKMM_BASEPATH%/include/libglademm-2.4" /I"%GTKMM_BASEPATH%/lib/libglademm-2.4/include" /I"%GTKMM_BASEPATH%/lib/gtkmm-2.4/include" /I"%GTKMM_BASEPATH%/include/gtkmm-2.4" /I"%GTKMM_BASEPATH%/lib/gdkmm-2.4/include" /I"%GTKMM_BASEPATH%/include/gdkmm-2.4" /I"%GTKMM_BASEPATH%/lib/pangomm-1.4/include" /I"%GTKMM_BASEPATH%/include/pangomm-1.4" /I"%GTKMM_BASEPATH%/include/atkmm-1.6" /I"%GTKMM_BASEPATH%/lib/libxml++-2.6/include" /I"%GTKMM_BASEPATH%/include/libxml++-2.6" /I"%GTKMM_BASEPATH%/lib/giomm-2.4/include" /I"%GTKMM_BASEPATH%/include/giomm-2.4" /I"%GTKMM_BASEPATH%/lib/glibmm-2.4/include" /I"%GTKMM_BASEPATH%/include/glibmm-2.4" /I"%GTKMM_BASEPATH%/include/cairomm-1.0" /I"%GTKMM_BASEPATH%/lib/sigc++-2.0/include" /I"%GTKMM_BASEPATH%/include/sigc++-2.0" /I"%GTKMM_BASEPATH%/include/libglade-2.0" /I"%GTKMM_BASEPATH%/lib/gtk-2.0/include" /I"%GTKMM_BASEPATH%/include/gtk-2.0" /I"%GTKMM_BASEPATH%/include/gdk-pixbuf-2.0" /I"%GTKMM_BASEPATH%/include/pango-1.0" /I"%GTKMM_BASEPATH%/include/atk-1.0" /I"%GTKMM_BASEPATH%/lib/glib-2.0/include" /I"%GTKMM_BASEPATH%/include/glib-2.0" /I"%GTKMM_BASEPATH%/include/libxml2" /I"%GTKMM_BASEPATH%/include/freetype2" /I"%GTKMM_BASEPATH%/include/cairo" /I"%GTKMM_BASEPATH%/include" glademm-vc80-2_4.lib xml++-vc80-2_6.lib gtkmm-vc80-2_4.lib glade-2.0.lib gdkmm-vc80-2_4.lib atkmm-vc80-1_6.lib pangomm-vc80-1_4.lib giomm-vc80-2_4.lib glibmm-vc80-2_4.lib cairomm-vc80-1_0.lib sigc-vc80-2_0.lib gtk-win32-2.0.lib libxml2.lib gdk-win32-2.0.lib atk-1.0.lib gdk_pixbuf-2.0.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib cairo.lib gio-2.0.lib gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib intl.lib /link /LIBPATH:"F:/gtkmm/lib"