[9877] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: gtkmm WARNING: yesterday's CVS vers. needs -pedantic with egcs-1.1

daemon@ATHENA.MIT.EDU (Tero Pulkkinen)
Thu Nov 5 04:21:17 1998

To: gtk-list@redhat.com
From: Tero Pulkkinen <terop@students.cc.tut.fi>
Date: 05 Nov 1998 11:20:44 +0200
In-Reply-To: Christof Petig's message of "Thu, 05 Nov 1998 09:52:36 +0100"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Christof Petig <christof.petig@wtal.de> writes:
>    /home/christof/cvs/gtk/Search_ComboBox.cc
> (.Connection gnu.linkonce.t.connect_to_method<_GtkObject,
> SearchComboBox>
> (Signal_proxy0<_GtkObject> &, SearchComboBox *, SearchComboBox *,
>                 void (SearchComboBox *))+0x98):
> undefined reference to `Gtk_Object::signal_connect(char const *, void
> (*)(...), void *)'
> 
> simply add -pedantic.
> 
> The correct funtion is:
>   Gtk_Object::signal_connect(char const *, void (*)(void), void *)
> instead of
>   Gtk_Object::signal_connect(char const *, void (*)(...), void *)
> 
> I'd be grateful for any explanation by C++ wizards. Sigh.

guess -pedantic causes signature of that function to change :(
=> if part of it is compiled with -pedantic and other module without,
it'll not like it :)

(anyway, I removed all uses of signal_connect from gtk-- and use
gtk_signal_connect instead - it'll help with this (its in cvs now).
But of course the same can happen with other methods.

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post