Date: Wed, 31 Mar 1999 14:15:40 +0930 (CST) From: Gregory Lewis <glewis@dartagnan.maths.adelaide.edu.au> To: prasad@usa.ltindia.com (Prasad Chemburkar) Cc: freebsd-questions@freebsd.org Subject: Re: X Windows development Message-ID: <9903310445.AA00512@dartagnan.maths.adelaide.edu.au> In-Reply-To: <3701A179.F3CA5853@usa.ltindia.com> from Prasad Chemburkar at "Mar 31, 99 09:45:53 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9903310445.AA00512>