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

compilation problems




I checked out a fresh mnemonic source code and compiled:

(RedHat 6.0, egcs-1.1.2-12 , glibc-2.1.1-6)  

make[1]: Entering directory `/home/randhol/src/projects/mnemonic-new/modular/mnemonic-oil-gtkdisplay'
Making all in src
make[2]: Entering directory `/home/randhol/src/projects/mnemonic-new/modular/mnemonic-oil-gtkdisplay/src'
c++ -D_REENTRANT -DPREFIX=\"/usr/local/bleeding-edge/mnemonic-raw\" -g -Wall -I. -I../include `gtkmm-config --cflags` -I/usr/local/bleeding-edge/mnemonic-raw/include -I/include -g -O2 -DOIL=\"gtkdisplay\"   -fPIC -c -o gtkdisplay.o gtkdisplay.cc
gtkdisplay.hh: In method `gint gtkdisplayhandler::testwidget::configure_event_handler(struct GdkEventConfigure *)':
In file included from gtkdisplay.cc:2:
gtkdisplay.hh:56: no method `gtkviewer::configure_event_impl'
gtkdisplay.hh:57: warning: control reaches end of non-void function `gtkdisplayhandler::testwidget::configure_event_handler(GdkEventConfigure *)'
gtkdisplay.hh: At top level:
gtkdisplay.hh:85: warning: base `w3render' with only non-default constructor
gtkdisplay.hh:85: warning: in class without a constructor
gtkdisplay.cc: In method `void gtkdisplayhandler::connect_signals_(class gtkdisplayhandler::testwidget *)':
gtkdisplay.cc:9: no matching function for call to `gtkdisplayhandler::testwidget::get_parent ()'
make[2]: *** [gtkdisplay.o] Error 1
make[2]: Leaving directory `/home/randhol/src/projects/mnemonic-new/modular/mnemonic-oil-gtkdisplay/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/randhol/src/projects/mnemonic-new/modular/mnemonic-oil-gtkdisplay'
make: *** [install] Error 2


I also have a problem with getting AcccelGroup attached to the
clientwindow.

Here is and example of a code that works:

-------------
TFWindow.h
-------------

class TFWindow : public GuiBufferedDrawingArea
        {
        public: 
[skipping code]
       protected: 
                Gtk_Window                      d_win;
                Gtk_VBox                        d_vbox;
                Gtk_AccelGroup                  d_accelGroup;
[skipping code]	
}

-------------
TFWindow.cc
-------------

TFWindow::TFWindow() : GuiBufferedDrawingArea (),
                        d_win (GTK_WINDOW_TOPLEVEL),
                        d_vbox (FALSE, 0),
                        d_accelGroup ()
        {
[skipping code]

         d_accelGroup.attach (d_win);

[skipping code]
}
-------------------------------------------------------------

What I tried to do was to make a 

Gtk_AccelGroup menubar::get_accelgroup_() {
	return accelgroup_;
}

and in 

clientwindow::clientwindow() {

	accelgr_ = menubar_.get_accelgroup_();

	accelgr_.attach (clientwindow);

but this doesn't compile. I need to supply the attach a Gtk_Object &

I tried a lot of things to get the "window"-object of clientwindow.

Where is my "logic" breaking down? Sorry that I don't have the source
here now, I forgot it at home this morning.
 
-- 
Preben Randhol                     «There are three things you can do 
[randhol@pvv.org] 	            to a woman. You can love her, suffer 
[http://www.pvv.org/~randhol/]      for her or turn her into literature.»
                                           - Justine, by Lawrence Durrell
-

         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
         Mnemonic Browser Project - http://www.mnemonic.browser.org/
                           Developers Mailinglist
             Archive: http://www.mnemonic.browser.org/list/dev/
         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-