delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/07/14:36:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <41DEE47F.1080407@bol.com.br>
Date: Fri, 07 Jan 2005 17:35:27 -0200
From: Eduardo M KALINOWSKI <ekalin AT bol DOT com DOT br>
User-Agent: Mozilla Thunderbird 0.9 (X11/20041124)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: glade_xml_signal_autoconnect doesn't find functions, symbols not exported?
X-Sender-IP: 200.103.130.163
X-IsSubscribed: yes

I'm porting I program I wrote under Linux to Windows using cygwin. It 
compiled without a single change, but when run, libglade's 
glade_xml_signal_autoconnect function did not find the signal handler 
functions, and issues errors like this:
 

libglade-WARNING **: could not find signal handler 'some_function'.


For the functions that were written by me, the solution was very simple: 
I added G_MODULE_EXPORT to the declarations, and this made them be 
correctly exported, so that libglade found them.

However, I use also as signal handlers a couple of functions from the 
gtk+ library, such as gtk_widget_hide_on_delete. This function is not 
found, and the handler is not connected. --export-dynamic is in the 
linker flags, I've verified that.

It seems that the functions in the gtk+ dll are not exported, but this 
seems very weird, so I guess I'm doing something wrong. Perhaps 
something more is needed under cygwin for that to work?

Thanks in advance,

-- 
Don't worry if you're a kleptomaniac; you can always take something for it.

Eduardo M KALINOWSKI
ekalin AT bol DOT com DOT br
http://move.to/hpkb


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019