gtkmm WARNING: yesterday's CVS vers. needs -pedantic with egcs-1.1
- From: Christof Petig <christof petig wtal de>
- To: Gtk-List <gtk-list redhat com>
- Subject: gtkmm WARNING: yesterday's CVS vers. needs -pedantic with egcs-1.1
- Date: Thu, 05 Nov 1998 09:52:36 +0100
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
erly with or without this option (though a rare few
will require `-ansi'). However, without this op
tion, certain GNU extensions and traditional C fea
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]