From debian-user Wed Aug 04 03:32:45 1999 From: Havoc Pennington Date: Wed, 04 Aug 1999 03:32:45 +0000 To: debian-user Subject: Re: idiot's question on Xlib programming X-MARC-Message: https://marc.info/?l=debian-user&m=93373729511774 On Tue, 3 Aug 1999 huixf@tonghua.com.cn wrote: > > 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. > You have to link with Xlib, try adding the '-lX11' flag to your compile line. You may find Gtk or some other high-level toolkit less frustrating; Xlib is hard even if you have a lot of Unix programming experience. Havoc -- Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null