Gtkmm, Gtk, and Xlib compiling error - Please help
- From: "Rose Cumming" <rose_alice_cumming hotmail com>
- To: gtkmm-list gnome org
- Subject: Gtkmm, Gtk, and Xlib compiling error - Please help
- Date: Mon, 03 Oct 2005 20:04:53 +0000
Hello,
When I add this line
#include <X11/Xlib.h>
in a Gtk application. For example, in base.c in the Gtk examples, it
compiles and works.
If I do the same in a Gtkmm application, such as wheelbarrow.cc in the Gtkmm
examples, I get a compiling error as followed:
Can I not use Xlib functions in a Gtkmm application?
---------------------------------------------------------------------------------------------------------------------------------
In file included from /usr/local/include/gtkmm-2.0/glibmm/interface.h:24,
from /usr/local/include/gtkmm-2.0/glibmm.h:37,
from /usr/local/include/gtkmm-2.0/gdkmm/types.h:6,
from /usr/local/include/gtkmm-2.0/gdkmm.h:27,
from wheelbarrow.cc:8:
/usr/local/include/gtkmm-2.0/glibmm/object.h:114: parse error before numeric
constant
/usr/local/include/gtkmm-2.0/glibmm/object.h:115: type specifier omitted for
parameter
/usr/local/include/gtkmm-2.0/glibmm/object.h:115: parse error before numeric
constant
In file included from /usr/local/include/gtkmm-2.0/gdkmm.h:27,
from wheelbarrow.cc:8:
/usr/local/include/gtkmm-2.0/gdkmm/types.h:188: parse error before `int'
/usr/local/include/gtkmm-2.0/gdkmm/types.h:205: parse error before `int'
/usr/local/include/gtkmm-2.0/gdkmm/types.h:211: parse error before `}' token
_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft®
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]