🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41944

Help linking with X11 libs...

#41944
From: Ken Geis
Date: Sun, 04 Feb 1996 00:00
28 lines
1431 bytes
	Hi.  I'm trying to compile gtcltk as part of the guile package.
When it is linking the new version of 'wish', I have the problem that all of
the calls to libX11 are noted as undefined.  The command line is as follows:

	gcc -g -I. -I./../gtcl -I/usr/X386/include -DHAVE_UNISTD_H=1 \
	-DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DTK_FILE_READ_PTR=1 \
	-DTK_LIBRARY=\"/usr/lib/tk\" tkAppInit.o libgtk.a ../gtcl/libgtcl.a \
	-L/usr/X386/lib -lX11 -lm -o wish


And I get pages of:

	tkMain.o(.text+0x314): undefined reference to `XSynchronize'
	tkWindow.o(.text+0x261): undefined reference to `XOpenDisplay'
	tkWindow.o(.text+0x1094): undefined reference to `XDestroyWindow'
	tkWindow.o(.text+0x10f2): undefined reference to `XDestroyIC'
	tkWindow.o(.text+0x12af): undefined reference to `XMapWindow'
	tkWindow.o(.text+0x1335): undefined reference to `XRootWindow'
	...

So, is there anything the makefile is obviously doing wrong?  How about
myself?  Any suggestions?

Thanks much,

	Ken Geis
	kgeis@ucsee.eecs.berkeley.edu
Technical Details
Message-ID: <4f112s$ipo@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,65c2d260b2ff53a9,start
X-Google-Attributes: gid11318c,public
From: kgeis@ucsee.EECS.Berkeley.EDU (Ken Geis)
Subject: Help linking with X11 libs...
Date: 1996/02/04
Message-ID: <4f112s$ipo@agate.berkeley.edu>
X-Deja-AN: 137936297
organization: UC Berkeley Society of Electrical Engineers
newsgroups: gnu.gcc.help