corrected: compile error help. derived widget placement example using libglademm and gtkglextmm



Hi,

I am working on an OpenGL project using gtkmm and gtkglextmm and libglademm. I 
found, by scouring mailing lists a sample application that uses the 
get_widget_derived method for this purpose. I have simplified it and modified 
it to get rid of almost all of the compilation errors, but I can't get rid of 
one last one. (It used an old libsigc++ and other things needed cleaning up.)

I will submit it to the gtkglextmm project after I get it working. It would be 
nice for libglademm too.

The package requirements are only libglademm gtkmm and gtkglextmm.

The glade file has a Gtk Window and within it a DrawingArea.

The example builds a derived Gtk::Window and puts within it a derived  
gtkglextmm  DrawingArea which has opengl
capabiliities.

The compilation proceeds with the Makefile I have provided until it says
make

/bin/rm -f .depend
g++ -MM -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` simpleGLwithGlade.cpp simpleGLscene.cpp > .depend
g++ -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` -c simpleGLwithGlade.cpp
g++ -g -Wall `pkg-config --cflags gtkmm-2.4 libglademm-2.4 gtkglextmm-1.2` -c simpleGLscene.cpp
simpleGLscene.cpp: In constructor 'SimpleGLScene::SimpleGLScene(GtkDrawingArea*, const Glib::RefPtr<Gnome::Glade::Xml>&)':
simpleGLscene.cpp:17: error: expected class-name before '(' token
make: *** [simpleGLscene.o] Error 1

I have no idea what the error

error: expected class-name before '(' token
make: *** [simpleGLscene.o] Error 1

means.

Any one able to help?

Thank you,

Mitchell laks

(I had to switch my locale from utf8 to C for this posting :))

Attachment: simple-gtkglextmm-glade.tgz
Description: GNU Unix tar archive



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