Re: glade_xml_signal_autoconnect cannot find functions NOT in shared libs?
- From: wallace owen l-3com com
- To: david hagood gmail com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: glade_xml_signal_autoconnect cannot find functions NOT in shared libs?
- Date: Thu, 19 Jul 2007 13:39:34 -0700
I remember libglade's FAQ/howto has a clue on this topic: there's a link
option or something that tells the executable to export it's symbols so
they can be seen by the dynamic loader. I don't remember what it is,
but I remember your symptoms.
// Wally
On Thu, 2007-07-19 at 15:19 -0500, david hagood gmail com wrote:
I am trying to rough out my first GTK app, and am trying to use
glade_xml_signal_autoconnect to handle hooking up the signals.
I can successfully hook up the signals contained withing libgtk, however,
any attempt to connect functions that are defined within my app fails with
a "libglade-WARNING **: could not find signal handler " message.
I'm guessing the problem is that GModule is not finding any symbols
contained within the executable itself, as opposed to symbols in shared
libraries, but I'd like to confirm this, and get any work-arounds anybody
may have.
The code is C++, with the signal handles marked as 'extern "C"' to a)
insure visibility and b) insure no mangling. They do show up when I do an
"objdump -t" so I know they are actually in the executable.
This is all under Suse Enterprise Desktop 10, using GTK 2.8.10. (yes, I
know it's out of date - one of the myriad of reasons I hate SLED10....)
On a related note: eventually, I'd like to handle signal assignment myself
(I really don't like the idea of a modified .glade file being able to
vector to any exported function, plus I'll eventually be vectoring to C++
functions), so I'd be using glade_xml_signal_autoconnect_full with my own
hook function - but is it possible (or advisable) for me to be able to
call the function that glade_xml_signal_autoconnect uses (I am assuming
that glade_xml_signal_autoconnect calls glade_xml_signal_autoconnect_full
internally)?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Wallace Owen L-3Com com
Office: 619.278.2084
Cell: 619.990.2286
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]