Date: Sat, 10 Sep 2005 12:27:34 +0800 From: salad jonk <saladjonk@gmail.com> To: freebsd-x11@freebsd.org Subject: Hi,I have a meet a problem,wish you to help me Message-ID: <ac3c93f405090921277ee8b5b0@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I am a beginner of X-window programming.When I compiled the source file I meet a problem,just could not find the library on the freebsd5.4 The name of the source file is "x_test.c" I use this command "gcc -o x_test x_test.c -I/usr/X11R6/include -L/usr/X11R6/lib",but can not pass the compile,just the following error message: /var/tmp//ccPzpiws.o(.text+0xc): In function `Initialise': : undefined reference to `XOpenDisplay' /var/tmp//ccPzpiws.o(.text+0xd2): In function `CreateWindow': : undefined reference to `XCreateSimpleWindow' /var/tmp//ccPzpiws.o(.text+0xe9): In function `CreateWindow': : undefined reference to `XMapWindow' /var/tmp//ccPzpiws.o(.text+0x1e5): In function `main': : undefined reference to `XDrawLine' /var/tmp//ccPzpiws.o(.text+0x20a): In function `main': : undefined reference to `XDrawLine' /var/tmp//ccPzpiws.o(.text+0x21d): In function `main': : undefined reference to `XSync' /var/tmp//ccPzpiws.o(.text+0x23e): In function `main': : undefined reference to `XDestroyWindow' /var/tmp//ccPzpiws.o(.text+0x252): In function `main': : undefined reference to `XDestroyWindow' /var/tmp//ccPzpiws.o(.text+0x263): In function `main': : undefined reference to `XCloseDisplay' What should I do? --=20 I am young,so my heart is full of dream
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ac3c93f405090921277ee8b5b0>