Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 1998 18:26:20 +0100 (CET)
From:      Konrad Heuer <kheuer@gwdu60.gwdg.de>
To:        Mr M P Searle <csubl@csv.warwick.ac.uk>
Cc:        Ghulam Dastgir <banta@ghulam.force9.co.uk>, freebsd-questions@FreeBSD.ORG
Subject:   Re: XWindows programming
Message-ID:  <Pine.BSF.3.96.981201182308.10508B-100000@gwdu60.gwdg.de>
In-Reply-To: <199812011433.OAA23168@lupin.csv.warwick.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981201182308.10508B-100000>