From owner-freebsd-questions Tue Dec 1 09:27:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20718 for freebsd-questions-outgoing; Tue, 1 Dec 1998 09:27:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA20707 for ; Tue, 1 Dec 1998 09:27:00 -0800 (PST) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.0/8.9.0) with SMTP id SAA10518; Tue, 1 Dec 1998 18:26:20 +0100 (CET) Date: Tue, 1 Dec 1998 18:26:20 +0100 (CET) From: Konrad Heuer To: Mr M P Searle cc: Ghulam Dastgir , freebsd-questions@FreeBSD.ORG Subject: Re: XWindows programming In-Reply-To: <199812011433.OAA23168@lupin.csv.warwick.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Dec 1998, Mr M P Searle wrote: > [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Hi, > > > > I'm trying to get a basic C program working with Xlib.h - but no luck. I've tried compiling the program with all the appropriate flags but nothing, like: > > > > gcc file.c -I/usr/X11R6/include -L/usr/X11R6/lib -IX11 -IXt > > ITYM gcc file.c -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXt > > > > > I've confirmed that all the X stuff exists (as I installed the X Developer from /stand/sysinstall) and that my C program's syntax is correct. > > The sort of error I get is: > > /vat/tmp/ccjNx2451.o Undefined symbol 'some X function' referenced from text segment > > Surely there's someone out there who's had this same problem ?? > > Thanks, Suggest the following if you use the X toolkit library and Athena widgets: cc -I/usr/X11R6/include file.c -L/usr/X11R6/lib -lXaw -lXmu -lXt -lXext -lX11 Regards Konrad Heuer // Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH // Goettingen (GWDG), Am Fassberg, D-37077 Goettingen, Germany // // kheuer@gwdu60.gwdg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message