[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] learning microwindows 1: how to build my own demo application?
From: "Greg Haerr" ####@####.#### Date: 15 Sep 2004 17:39:42 +0100 Message-Id: <116801c49b42$3f9c9630$3eba46a6@winXP> : gcc sample.c -o sample -lnano-X use gcc -I/path/to/microwin/include ... Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] learning microwindows 1: how to build my own demo application?
From: "tian tao" ####@####.#### Date: 17 Sep 2004 02:41:24 +0100 Message-Id: <BAY19-F23EhGD1XyCTr00004f5c@hotmail.com> Hi Greg, Thank you very much.With -I/path/to/microwin/include, it works well. TianTao >From: "Greg Haerr" ####@####.#### >Reply-To: "Greg Haerr" ####@####.#### >To: "tian tao" ####@####.#### ####@####.#### >Subject: Re: [nanogui] learning microwindows 1: how to build my own demo application? >Date: Wed, 15 Sep 2004 10:36:40 -0600 > >: gcc sample.c -o sample -lnano-X > >use gcc ... > >Regards, > >Greg > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ####@####.#### >For additional commands, e-mail: ####@####.#### > _________________________________________________________________ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |