Compilation error of an example from the gtkmm book



Hi everyone,

I'm trying to compile an example from the gtkmm book about drawing area but the compilation gives me an "has no member" error".
The page of the example is: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15s02.html

gcc *.cc -o prog `pkg-config gtkmm-2.4 cairomm-1.0 --cflags --libs`

myarea.cc: In member function 'virtual bool MyArea::on_expose_event(GdkEventExpose*)':
myarea.cc:45: error: 'class Gdk::Window' has no member named 'create_cairo_context'

What I'm doing wrong?

Thanks in advance!
P. F. Smorigo


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