VS2015/VS2017: Error building gtkmm 3.22.2 in release mode
Submitted by Daniele Forghieri
Link to original bug (#791434)
Description
I'm trying to build the gtkmm stack on windows using a modified version of the gvsbuild script (https://github.com/guruDanny67/gvsbuild.git) and everything is ok in debug mode, from the script or using the vs solution..
When I try to build in release mode the gtkmm3-demo.exe doesn't link for an unresolved external in the sources (4) that uses GtkTreeColumn:
example_treeview_treestore.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Gtk::TreeViewColumn::`vbase destructor'(void)" (_imp??_DTreeViewColumn@Gtk@@QAEXXZ) [C:\gtk-build\build\Wi n32\release\gtkmm\vs2015\gtkmm3-demo.vcxproj]
if I disable the optimizations on the gtkmm library release project (using all the other modules / libs with the release default options) I get a different unresolved external (in 6 files), in particular:
error LNK2001 unresolved external symbol "__declspec(dllimport) public: struct _GObject * __thiscall Glib::ObjectBase::gobj(void)" (_imp?gobj@ObjectBase@Glib@@QAEPAU_GObject@@XZ)
Version: 3.22.x