[prev in list] [next in list] [prev in thread] [next in thread]
List: debian-user
Subject: idiot's question on Xlib programming
From: huixf () tonghua ! com ! cn
Date: 1999-08-04 2:20:35
[Download RAW message or body]
I write a simple program but can't compile it. Below is the program:
#include <Xlib.h>
main()
{Display *d=XOpenDisplay(NULL);
if(d==NULL)
{printf("can't open display\n");exit(0);} XCloseDisplay(d);
}
I use "gcc -I/usr/X11R6/include/X11 xhi.c" to complie it and get the following message:
/tmp/cca002281.o: In function `main':
/tmp/cca002281.o(.text+0x9): undefined reference to `XOpenDisplay'
/tmp/cca002281.o(.text+0x45): undefined reference to `XCloseDisplay'
What's the problem? Please reply to huixf@tonghua.com.cn because I will leave the list in a minute.
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic