Problems using libglademm under MSVC_2003.NET when building dll



Hi there

I built all my own libraries for libglademm and gtkmm (2.4.5).
I have a perfectly working application using gtkmm and libglademm. The
problem
is that I need to use it as a dll. I'm using static libraries for
everything
except sigc which is dll. (This is what the supplied workspace is set
to)

As soon as I change the project setting from windows application (or
console app, 
both work) to dll, I get the following linking errors:

Linking...
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: bool __thiscall
sigc::slot_base::blocked(void)const " (?blocked slot_base@sigc@@QBE_NXZ)
already defined in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: bool __thiscall
sigc::slot_base::empty(void)const " (?empty slot_base@sigc@@QBE_NXZ)
already defined in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: __thiscall
sigc::internal::slot_rep::~slot_rep(void)"
(??1slot_rep internal@sigc@@QAE XZ) already defined in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: __thiscall
sigc::internal::slot_do_bind::slot_do_bind(struct
sigc::internal::slot_rep *)"
(??0slot_do_bind internal@sigc@@QAE PAUslot_rep@12@@Z) already defined
in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: __thiscall
sigc::internal::slot_rep::slot_rep(void * (__cdecl*)(void *),void *
(__cdecl*)(void *),void * (__cdecl*)(void *))"
(??0slot_rep internal@sigc@@QAE P6APAXPAX@Z11 Z) already defined in
basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: __thiscall
sigc::internal::slot_do_unbind::slot_do_unbind(struct
sigc::internal::slot_rep *)"
(??0slot_do_unbind internal@sigc@@QAE PAUslot_rep@12@@Z) already defined
in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: void __thiscall
sigc::internal::slot_do_bind::operator()(struct sigc::trackable const
*)const " (??Rslot_do_bind internal@sigc@@QBEXPBUtrackable 2@@Z) already
defined in basic.obj
sigc-2.0.lib(sigc.dll) : error LNK2005: "public: void __thiscall
sigc::internal::slot_do_unbind::operator()(struct sigc::trackable const
*)const " (??Rslot_do_unbind internal@sigc@@QBEXPBUtrackable 2@@Z)
already defined in basic.obj

Any ideas would be appreciated!
Thanks



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