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



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]