Re: [gtkmm] gtkmm-2.4 on MSVC



Murray Cumming wrote:

Now that libsigc++ 2.0.6 is out, I have posted a couple of tarballs that
include solution and project files to (almost) build glibmm-2.4 and
gtkmm-2.4 with Visual Studio .NET 2003:

http://www.k-3d.com/~tshead/gtkmm/glibmm-2.4.4-msvc-tar.gz
http://www.k-3d.com/~tshead/gtkmm/gtkmm-2.4.5-msvc-tar.gz

May I add this project file to glibmm in CVS? Is it based on the gtkmm 2.2
project file? Should it go in the same place?

Certainly, although I hasten to add that there is more than one file involved - you should see that the tarball expands to an "MSVC" directory which contains solution file, project file, glibmmconfig.h, and a small *.cpp file which is a workaround for a problem with the MSVC IDE. The MSVC directory should go in the top-level of the glibmm tree. This is consistent with what was done in libsigc++ 2.0.6, and cleanly-separates all MSVC-related stuff from the rest of the tree.

Ditto for gtkmm - the tarball adds a top-level "MSVC" directory with solution and multiple project files.

These are not based on the gtkmm 2.2 project files.

while atkmm, pangomm, gdkmm, and gtkmm compile
cleanly, but have link problems.

Well done. If you show us those linker errors then someone might be able
to help.

I've included a partial sample below. You will see that there are many unresolved public symbols from glibmm. I've verified that the glibmm link library exists, and I've verified that the project is finding it, which is why I'm thinking that this either related to the MS dllexport/dllimport stuff, or some subtlety of configuration.

Cheers,
Tim

------ Build started: Project: gdkmm, Configuration: Debug Win32 ------

Linking...
   Creating library Debug/gdkmm.lib and object Debug/gdkmm.exp
pixbufanimation.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) pixbufloader.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) referenced in function "public: void __thiscall Gdk::PixbufLoader::write(unsigned char const *,unsigned int)" (?write PixbufLoader@Gdk@@QAEXPBEI Z) window.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) color.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) referenced in function "public: bool __thiscall Gdk::Color::set(class Glib::ustring const &)" (?set Color@Gdk@@QAE_NABVustring Glib@@@Z) display.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) dragcontext.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) pixbuf.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall Glib::ustring::c_str(void)const " (?c_str ustring@Glib@@QBEPBDXZ) screen.obj : error LNK2001: unresolved external symbol "protected: __thiscall Glib::Object::Object(struct _GObject *)" (??0Object Glib@@IAE PAU_GObject@@@Z) visual.obj : error LNK2001: unresolved external symbol "protected: __thiscall Glib::Object::Object(struct _GObject *)" (??0Object Glib@@IAE PAU_GObject@@@Z) pixbuf.obj : error LNK2001: unresolved external symbol "protected: __thiscall Glib::Object::Object(struct _GObject *)" (??0Object Glib@@IAE PAU_GObject@@@Z) pixbufanimation.obj : error LNK2001: unresolved external symbol "protected: __thiscall Glib::Object::Object(struct _GObject *)" (??0Object Glib@@IAE PAU_GObject@@@Z) pixbufanimationiter.obj : error LNK2019: unresolved external symbol "protected: __thiscall Glib::Object::Object(struct _GObject *)" (??0Object Glib@@IAE PAU_GObject@@@Z) referenced in function __ehhandler$?wrap_new PixbufAnimationIter_Class@Gdk@@SAPAVObjectBase Glib@@PAU_GObject@@@Z



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]