From owner-freebsd-x11@FreeBSD.ORG Sat Sep 10 04:27:43 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EA7316A41F for ; Sat, 10 Sep 2005 04:27:43 +0000 (GMT) (envelope-from saladjonk@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8BBB43D46 for ; Sat, 10 Sep 2005 04:27:42 +0000 (GMT) (envelope-from saladjonk@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so175701rne for ; Fri, 09 Sep 2005 21:27:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZxBa48NglD/6Vg5RYNsRRKEzM9aTCpBu1hfmh1ppHi5BUtHZOlKsBjIIxZqwHjIPk8qkypN6waj4jNx3H5yWjTeWwzP3+zP0IE/5yeoepSBbNpomKMOmAsQCypdCjUUMba4fbFrB9rRq/1NOUHb4wZtsbz2i6KIOWKH74rT1Pys= Received: by 10.38.11.30 with SMTP id 30mr90955rnk; Fri, 09 Sep 2005 21:27:34 -0700 (PDT) Received: by 10.39.3.68 with HTTP; Fri, 9 Sep 2005 21:27:34 -0700 (PDT) Message-ID: Date: Sat, 10 Sep 2005 12:27:34 +0800 From: salad jonk To: freebsd-x11@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Hi,I have a meet a problem,wish you to help me X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: saladjonk@gmail.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 04:27:43 -0000 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