[gtkmm] Gtk::DrawingArea



Hi all!

I'm a gtkmm beginner. I tried the "cust_draw_area" example
class from:

http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch14s06.html

The result is:

$ g++ `pkg-config --cflags gtkmm-2.0` -c cust_draw_area.cpp

/usr/include/gtkmm-2.0/gtkmm/widget.h:353:   overriding `virtual bool 
   Gtk::Widget::on_expose_event(GdkEventExpose*)'
cust_draw_area.cpp: In constructor `cust_draw_area::cust_draw_area(int, int)':
cust_draw_area.cpp:19: `size' undeclared (first use this function)
cust_draw_area.cpp:19: (Each undeclared identifier is reported only once for 
   each function it appears in.)
cust_draw_area.cpp: In member function `virtual int 
   cust_draw_area::on_expose_event(GdkEventExpose*)':
cust_draw_area.cpp:25: no matching function for call to `
   Glib::RefPtr<Gdk::Window>::draw_line(Glib::RefPtr<Gdk::GC>, int, int, int, 
   int)'


I have:
	gtkmm-2.2.3 
	gtk+-2.2.1
	glib-2.2.2
	pango-1.2.1
	libsigc++-1.2.5
	atk-1.2.3
	gcc (GCC) 3.2.3

Does anybody know how to compile "cust_draw_area" ? :

For the whole CPP text please refer to:

http://rnvs.informatik.tu-chemnitz.de/GTKMM/cust_draw_area.txt


-- 
J.Anders, Chemnitz, GERMANY (ja informatik tu-chemnitz de)



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