Re: Problem with glade
- From: Uzytkownik <uzytkownik22 gazeta pl>
- To: Matthias Clasen <mclasen redhat com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Problem with glade
- Date: Sat, 15 Oct 2005 11:55:40 +0200
Dnia 14-10-2005, piÄ o godzinie 14:32 -0400, Matthias Clasen napisaÅ(a):
On Fri, 2005-10-14 at 14:27 -0400, Brian Clark wrote:
(a.out:5100): libglade-WARNING **: could not find signal handler
'on_bok_clicked'.
(a.out:5100): libglade-WARNING **: could not find signal handler
'on_wgtelnet_destroy'.
The symbols for the functions are not being exported in the
executable, so glade_xml_signal_autoconnect is not able to find them.
I usually use C++, but this should work for you. I was able to solve
this by making sure I had the function declared in a header file, and
putting extern "C" in front of the return type of the function
definition in the C file. (That part is probably C++ specific). I'm
also passing --export-dynamic to gcc for linking.
I hope this helps you out.
Yes, you need -Wl,--export-dynamic for glade_xml_signal_autoconnect to
work.
Matthias
Thanks.
It's now OK.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]