Problems with gtk---0.9.1







Ok I'm in the  gtk---0.9.1/examples/

and I type:

g++ `gtk-config --cflags` -o testme1 testme1.cc -lgtkmm `gtk-config --libs`  

just like it says to in the FAQ.  testme1 compiles and works  fine BUT
whenmpiling I get a long icky slew of warnings.  Oddly enough I don't get this
slue of warnings when I just type make and use the included makefile there in
the directory.  What gives?  Is there some sort of warning I should turn off?


Here are the error messages for your edification : 


/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_funct
ion(class Signal0 &, void (*)())':
In file included from /usr/local/include/gtk--sigproxy.h:38,
                 from /usr/local/include/gtk--sig.h:149,
                 from /usr/local/include/gtk--.h:92,
                 from testme1.cc:2:
/usr/local/include/gtk--sigcpp.h:214: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
testme1.cc: In method `MyWin::MyWin(int)':
testme1.cc:92: warning: initialization of non-const reference `class Connection
&' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:91: warning: in passing argument 1 of `Conne
ction::operator =(Connection &)'
testme1.cc:95: warning: initialization of non-const reference `class Connection
&' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:91: warning: in passing argument 1 of `Conne
ction::operator =(Connection &)'
testme1.cc:96: warning: initialization of non-const reference `class Connection
&' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:91: warning: in passing argument 1 of `Conne
ction::operator =(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_metho
d<MyWin>(class Signal0 &, class MyWin *, void (MyWin::*)())':
/usr/local/include/gtk--sigcpp.h:108: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_metho
d<MyWin, void *>(class Signal0 &, class MyWin *, void (MyWin::*)(void *), void *
)':
/usr/local/include/gtk--sigcpp.h:160: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_metho
d<MyWin, Gtk_Container, int>(class Signal1<int> &, class MyWin *, void (Gtk_Cont
ainer::*)(int))':
/usr/local/include/gtk--sigcpp.h:420: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_metho
d<MyWin, MyWin, int>(class Signal1<int> &, class MyWin *, void (MyWin::*)(int))'
:
/usr/local/include/gtk--sigcpp.h:420: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_metho
d<MyWin, MyWin, int, void *>(class Signal1<int> &, class MyWin *, void (MyWin::*
)(int, void *), void *)':
/usr/local/include/gtk--sigcpp.h:427: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigproxy.h: In function `class Connection connect_to_met
hod<void, Gtk_Button, Gtk_Main>(class Signal_proxy0<void,Gtk_Button> &, class Gt
k_Main *, void (Gtk_Main::*)())':
/usr/local/include/gtk--sigproxy.h:101: warning: initialization of non-const ref
erence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_funct
ion<_GdkEventKey *>(class Signal1<_GdkEventKey *> &, void (*)(struct _GdkEventKe
y *))':
/usr/local/include/gtk--sigcpp.h:420: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'
/usr/local/include/gtk--sigcpp.h: In function `class Connection connect_to_funct
ion<_GdkEventKey *, void *>(class Signal1<_GdkEventKey *> &, void (*)(struct _Gd
kEventKey *, void *), void *)':
/usr/local/include/gtk--sigcpp.h:427: warning: initialization of non-const refer
ence `class Connection &' from rvalue `Connection'
/usr/local/include/gtk--sigcommon.h:92: warning: in passing argument 1 of `Conne
ction::Connection(Connection &)'


--
-----------------------------------------------------------------------
 Justin Sher         |  "No appeal to any historical or empirical    
 Programmer/Analyst  |   consideration can discover any fault in the
 NDST Communications |   proposition that men aim purposefully at  
 justin@ndst.com     |	 certain chosen ends." -L. Von Mises		   



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