swarm-support
[Top][All Lists]
Advanced

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

Compiling simpleObserverBug/X


From: LIK MUI
Subject: Compiling simpleObserverBug/X
Date: Mon, 22 Mar 1999 00:31:18 EST

--------

Hi, I have downloaded 1.4.1 and tried to compile simpleObserverBug
tutorial.  Firstly, I cannot find <swarmobject.h>.  More seriously,
the compiler (GCC 2.8.1) complains about the X-includes:

-----------------------------------------------------------------------
    # make
    gcc -c -Wno-import -Wno-protocol -g -O2 -fno-inline -D_GNU_SOURCE \
           -I/home/swarm/include -I/home/swarm/include/tclobjc \
           -I/home/swarm/include/tkobjc main.m   
    In file included from /usr/include/X11/Xlib.h:56,
                     from /usr/include/tk.h:75,
                     from /home/swarm/include/tclobjc/TkInterp.h:28,
                     from /home/swarm/include/tkobjc/TkExtra.h:8,
                     from /home/swarm/include/tkobjc.h:22,
                     from ObserverSwarm.h:6,
                     from main.m:3:
    /usr/include/X11/X.h:85: parse error before `Pixmap'
    /usr/include/X11/X.h:87: parse error before `Colormap'
    In file included from /usr/include/tk.h:75,
                     from /home/swarm/include/tclobjc/TkInterp.h:28,
                     from /home/swarm/include/tkobjc/TkExtra.h:8,
                     from /home/swarm/include/tkobjc.h:22,
                     from ObserverSwarm.h:6,
                     from main.m:3:
    /usr/include/X11/Xlib.h:212: field `tile' has incomplete type
    /usr/include/X11/Xlib.h:213: field `stipple' has incomplete type
    /usr/include/X11/Xlib.h:221: field `clip_mask' has incomplete type
    /usr/include/X11/Xlib.h:285: field `cmap' has incomplete type
    /usr/include/X11/Xlib.h:308: field `background_pixmap' has incomplete type
    /usr/include/X11/Xlib.h:310: field `border_pixmap' has incomplete type
    ... (etc)
-----------------------------------------------------------------------

Does anyone know what is going on?


                                                Lik Mui



ps. In the X.h file, the following lines might be of interest:

...
68: typedef unsigned long XID;
...
82: typedef XID Window;
83: typedef XID Drawable;
84: typedef XID Font;
85: typedef XID Pixmap;
86: typedef XID Cursor;
87: typedef XID Colormap;
88: typedef XID GContext;
89: typedef XID KeySym;


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]