From owner-freebsd-questions Tue Mar 30 20:46:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dartagnan.maths.adelaide.edu.au (dartagnan.maths.adelaide.edu.au [129.127.44.41]) by hub.freebsd.org (Postfix) with SMTP id 9703D15562 for ; Tue, 30 Mar 1999 20:46:45 -0800 (PST) (envelope-from glewis@dartagnan.maths.adelaide.edu.au) Received: by dartagnan.maths.adelaide.edu.au (5.64+1.3.1+0.50/UA-5.19) id AA00512; Wed, 31 Mar 1999 14:15:40 +0930 From: Gregory Lewis Message-Id: <9903310445.AA00512@dartagnan.maths.adelaide.edu.au> Subject: Re: X Windows development In-Reply-To: <3701A179.F3CA5853@usa.ltindia.com> from Prasad Chemburkar at "Mar 31, 99 09:45:53 am" To: prasad@usa.ltindia.com (Prasad Chemburkar) Date: Wed, 31 Mar 1999 14:15:40 +0930 (CST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1851 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Our software team want to do development on X Motify, i have installed > all packages related to X windows but while compiling programs on X > Motify all functions give error as > > # cc -I /usr/X11R6/include hello.c Try cc -I/usr/X11R6/include hello.c -L/usr/X11R6/lib -lXm -lXt -lX11 All the undefined references you have below are references to Motif functions of Xt functions. I might not have the libraries exactly right, but its something like that ;). > /var/tmp/ccyd21181.o: In function `main': > /var/tmp/ccyd21181.o(.text+0xd): undefined reference to > `XtSetLanguageProc' > /var/tmp/ccyd21181.o(.text+0x2e): undefined reference to > `XtVaAppInitialize' > /var/tmp/ccyd21181.o(.text+0x40): undefined reference to > `XmStringCreateLocalize > d' > /var/tmp/ccyd21181.o(.text+0x53): undefined reference to `_XmStrings' > /var/tmp/ccyd21181.o(.text+0x5c): undefined reference to > `xmPushButtonWidgetClas > s' > /var/tmp/ccyd21181.o(.text+0x67): undefined reference to > `XtVaCreateManagedWidge > t' > /var/tmp/ccyd21181.o(.text+0x78): undefined reference to `XmStringFree' > /var/tmp/ccyd21181.o(.text+0x87): undefined reference to `_XmStrings' > /var/tmp/ccyd21181.o(.text+0x90): undefined reference to `XtAddCallback' > > /var/tmp/ccyd21181.o(.text+0x9c): undefined reference to > `XtRealizeWidget' > /var/tmp/ccyd21181.o(.text+0xa8): undefined reference to `XtAppMainLoop' > > can any one please help me as what varaibles to be set for 'c' compiler > or which X Motify pacakages to be added to solve this problem. Secondly > all the time we have use "-I" flag in "C" compiler inspite all env is > set, this problem is there only for X Motify rest all normal program > works. You could like set it in a Makefile... -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 3237 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message