Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41DEE823.5060901@familiehaase.de>
Date: Fri, 07 Jan 2005 20:50:59 +0100
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Eduardo M KALINOWSKI <ekalin@bol.com.br>
CC: cygwin@cygwin.com
Subject: Re: glade_xml_signal_autoconnect doesn't find functions, symbols not exported?
References: <41DEE47F.1080407@bol.com.br>
In-Reply-To: <41DEE47F.1080407@bol.com.br>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Eduardo M KALINOWSKI wrote:

> 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,
> 

gtk_widget_hide_on_delete is exported explicitly (at least in version
2.4.14 whioch is the latest available).

How do you compile your application (ie the link command)?


Gerrit
-- 
=^..^=

--
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/

