[9876] in The GTK GIMP ToolKit mailing list archive

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

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

daemon@ATHENA.MIT.EDU (Christof Petig)
Thu Nov 5 03:54:40 1998

Date: Thu, 05 Nov 1998 09:52:36 +0100
From: Christof Petig <christof.petig@wtal.de>
To: Gtk-List <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hello,

after three hours of bug hunting (I first checked the cpp
output)(gtkmm's examples linked, my progs not) I found the -pedantic
flag as the cause.

So if you get link errors like
   /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.

Christof

PS: Quoting from the (old) gcc man page:
              Valid ANSI standard C programs should compile prop=AD
              erly with or without this option (though a rare few
              will  require  `-ansi').  However, without this op=AD
              tion, certain GNU extensions and traditional C fea=AD
              tures  are  supported  as  well.  With this option,
              they are rejected.  There is no reason to use  this
              option; it exists only to satisfy pedants.


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


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