Re: Compilation error of an example from the gtkmm book



You must be using an older version of gtkmm. If i remember it right (might not), then Gdk::Window::create_cairo_context() was introduced with 2.10.

2008/8/5 Paulo Flabiano Smorigo <pfsmorigo gmail com>
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

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




--
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]


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