nanogui: learning microwindows 1: how to build my own demo application?


Previous by date: 15 Sep 2004 07:35:15 +0100 Re: About Touch on Innovator 1510, Greg Haerr
Next by date: 15 Sep 2004 07:35:15 +0100 learning microwindows 2: how to run nano-X in 2 pc of c/s mode?, tian tao
Previous in thread:
Next in thread: 15 Sep 2004 07:35:15 +0100 Re: learning microwindows 1: how to build my own demo application?, Greg Haerr

Subject: learning microwindows 1: how to build my own demo application?
From: "tian tao" ####@####.####
Date: 15 Sep 2004 07:35:15 +0100
Message-Id: <BAY19-F9bxfiIBFdtaF00001214@hotmail.com>

Hi all,
   Thanks Gregory's help first. I have installed microwindows in my pc with 
Redhat9.0. Now I can run the demo.sh in the source of microwindows folder. 
I hope to write a demo myself and run it. I copied a simple demo.c from 
"Introduction to Microwindows Programming Part I". I tried built it by the 
command:
   gcc sample.c -o sample -lnano-X
   It was not successful, I copy the debug message below. Can anyone tell 
me how can I build the sample? Thanks very much.
        TianTao

In file included from /usr/include/stdio.h:34,
                 from mysample.c:2:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stddef.h:213: syntax error 
before "typedef"
mysample.c:3:20: nano-X.h: no such file or directory
mysample.c: In function `main':
mysample.c:7: `GR_WINDOW_ID' undeclared (first use in this function)
mysample.c:7: (Each undeclared identifier is reported only once
mysample.c:7: for each function it appears in.)
mysample.c:7: parse error before "w"
mysample.c:8: `GR_EVENT' undeclared (first use in this function)
mysample.c:15: `w' undeclared (first use in this function)
mysample.c:15: `GR_ROOT_WINDOW_ID' undeclared (first use in this function)
mysample.c:16: `WHITE' undeclared (first use in this function)
mysample.c:16: `BLUE' undeclared (first use in this function)
mysample.c:20: `event' undeclared (first use in this function)

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


Previous by date: 15 Sep 2004 07:35:15 +0100 Re: About Touch on Innovator 1510, Greg Haerr
Next by date: 15 Sep 2004 07:35:15 +0100 learning microwindows 2: how to run nano-X in 2 pc of c/s mode?, tian tao
Previous in thread:
Next in thread: 15 Sep 2004 07:35:15 +0100 Re: learning microwindows 1: how to build my own demo application?, Greg Haerr


Powered by ezmlm-browse 0.20.