Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 1999 18:47:50 -0600
From:      Nathan Ahlstrom <nrahlstr@winternet.com>
To:        Scott Myron <zamy27@hsonline.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Compiling aterm...
Message-ID:  <19990103184750.D11751@winternet.com>
In-Reply-To: <369008DF.2DF30142@hsonline.net>; from Scott Myron on Sun, Jan 03, 1999 at 07:18:39PM -0500
References:  <369008DF.2DF30142@hsonline.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Myron <zamy27@hsonline.net> wrote:
> I'm trying to compile aterm, and i get to the last stage where it puts
> it all together. this is the command line it uses.
> 
> gcc -O -o aterm command.o graphics.o grkelot.o main.o menubar.o misc.o
> netdisp.o
> rmemset.o screen.o scrollbar2.o utmp.o xdefaults.o xpm.o  -LX11

Shouldn't this be -lX11 instead of -LX11

> and i get a bunch of stuff.. like this..
> 
> scrollbar2.o(.text+0x6fe): undefined reference to `XCopyArea'
> scrollbar2.o(.text+0x720): undefined reference to `XFillRectangle'
> scrollbar2.o(.text+0x757): undefined reference to `XCopyArea'
> scrollbar2.o(.text+0x766): undefined reference to `XFreePixmap'
> xdefaults.o: In function `define_key':
> xdefaults.o(.text+0x70b): undefined reference to `XrmQuarkToString'
> xdefaults.o: In function `parse_keysym':
> xdefaults.o(.text+0x83a): undefined reference to `XStringToKeysym'

These are library functions which live in the X11 library.  It is not
getting linked in correctly.

-- 

Nathan Ahlstrom
nrahlstr@winternet.com
nrahlstr@FreeBSD.ORG
http://www.FreeBSD.ORG/

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?19990103184750.D11751>