From owner-freebsd-questions Sun Nov 29 11:56:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27386 for freebsd-questions-outgoing; Sun, 29 Nov 1998 11:56:28 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from inhaler.noopy.org (nvp.ne.mediaone.net [24.128.50.139]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA27381 for ; Sun, 29 Nov 1998 11:56:27 -0800 (PST) (envelope-from nvp@mediaone.net) From: nvp@mediaone.net Received: (qmail 2180 invoked by uid 603); 29 Nov 1998 19:59:43 -0000 Message-ID: <19981129195943.2179.qmail@inhaler.noopy.org> Subject: Re: XWindows programming In-Reply-To: <01be1c11$6c9b6e60$0d8ea6c3@signup> from Ghulam Dastgir at "Nov 29, 98 07:27:57 pm" To: banta@ghulam.force9.co.uk (Ghulam Dastgir) Date: Sun, 29 Nov 1998 14:59:43 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I've just started X programming using Xlib and when I compile my C > program, that includes the header file Xlib.h, I get errors for all > the Xlib.h declared functions my C program calls, like: You should be using the (gcc) options -I/usr/X11R6/include and -L/usr/X11R6/lib as well as -lX11 -lXt, so: prompt$ gcc -I/usr/X11R6/include -L/usr/X11R6/lib file.c -lX11 -lXt -- Nate Patwardhan nvp@mediaone.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message