HELP: ld -lX11 -lXt error!!!

HELP: ld -lX11 -lXt error!!!

Post by enric » Sat, 24 Oct 1998 04:00:00



Hi at all,

during a compilation of an X program I have the following error:

/usr/bin/ld: cannot open -lXt: No such file or directory

The same thing occurs for -lX11

WHY??? Are these the standard X library or not??

My system has linux slackware 3.3, kernel 2.0.35, egcs compilers, X 3.3.2.

In my /usr/X11R6/lib I have:

libXt.so.6.0
libXt.a
libX11.so.6.1
libX11.a

Thank in advance.

---------------------------     /\\\\\\
Enrico Morelli                 /\|||||||
                              /__ __ ::;
Lab. NMR - Dpt. Chemistry    |  O O    _
University of Florence          /     | |
Phone: +39 55 2757539          |_/     _|
Fax  : +39 55 2757555           |_/   |
                                |    /

-----------------------------  \_ /

 
 
 

HELP: ld -lX11 -lXt error!!!

Post by Joe Pfeiffe » Sat, 24 Oct 1998 04:00:00



> during a compilation of an X program I have the following error:

> /usr/bin/ld: cannot open -lXt: No such file or directory

> The same thing occurs for -lX11

I'll hazard a guess that you don't have a -L/usr/X11R6/lib flag in
your compilation.  ld doesn't know to look there for the objects
without it.
--
Joseph J. Pfeiffer, Jr., Ph.D.       Phone -- (505) 646-1605
Department of Computer Science       FAX   -- (505) 646-1002
New Mexico State University          http://www.cs.nmsu.edu/~pfeiffer
``Welcome to the Hellmouth Petting Zoo'' -- Buffy

 
 
 

HELP: ld -lX11 -lXt error!!!

Post by Dmitry S. Priima » Sun, 25 Oct 1998 04:00:00



> Hi at all,

> during a compilation of an X program I have the following error:

> /usr/bin/ld: cannot open -lXt: No such file or directory

> The same thing occurs for -lX11

> WHY??? Are these the standard X library or not??

> My system has linux slackware 3.3, kernel 2.0.35, egcs compilers, X 3.3.2.

> In my /usr/X11R6/lib I have:

> libXt.so.6.0
> libXt.a
> libX11.so.6.1
> libX11.a

> Thank in advance.

> ---------------------------     /\\\\\\
> Enrico Morelli                 /\|||||||
>                               /__ __ ::;
> Lab. NMR - Dpt. Chemistry    |  O O    _
> University of Florence          /     | |
> Phone: +39 55 2757539          |_/     _|
> Fax  : +39 55 2757555           |_/   |
>                                 |    /

> -----------------------------  \_ /

I guess, your LD_LIBRARY_PATH doesn't have /usr/X11R6/lib
If it is so, just what you have to do is to add this path to this system var.

--
Dmitry S. Priimak
http://www.qc.edu/~dprijmak

 
 
 

HELP: ld -lX11 -lXt error!!!

Post by Larry Morle » Mon, 26 Oct 1998 03:00:00



> during a compilation of an X program I have the following error:
> /usr/bin/ld: cannot open -lXt: No such file or directory
> The same thing occurs for -lX11

The -L/usr/lib/X11 linker switch should work...  On my machine, it's a
symlink
to  /usr/X11R6/lib/X11, so -L/usr/X11R6/lib/X11 works too.  If you're
using imake, you may have to change your Imakefile to read something
like the following:

SYS_LIBRARIES = MathLibrary
        DEPLIBS = $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB) -L/usr/X11R6/lib

SRCS = myXapp.c
OBJS = myXapp.o

ComplexProgramTarget(myXapp)

The optimal thing to do would be to change your site / host / etc.
files for imake, but that's a pain in the butt.  You'll find the whole
lot of them in /usr/X11R6/lib/X11/config (Imake.cf, Imake.tmpl,
Imake.rules, site.def, host.def etc.)

Unless I'm working on a big project, I generally just write
a short shell script containing something like:

   gcc -omyXapp -L/usr/X11R6/lib -lXaw3d -lXmu -lXt -lXext -lX11
myXapp.c

(customize libraries & compiler options to taste).

Hope this helps.
Larry Morley

 
 
 

1. cannot compile with -lXt -lX11; xearth it is

I have Linux 2.0.29 (Slackware 3.2) running inside a Pentium PC.

Trying to compile "xearth" source code (in gcc) using -lXt -lX11
However, the compiler seemed to be looking for some library
files. It could not find them and the compilation seemed aborted.

Q1: Do I need to find some library files for the compiler? If
    so, what are their names? Where can I find them?

Q2: Where can I find the executible of xearth for "Pentium" PC?

2. Missing package?

3. Getting error: ld: cannot open -lX11: No such file or directory?

4. SQL Calls into Oracle from WWW

5. ld & X11 errors (Yes, I'm using -lX11)

6. FreeBSD and cvsd server problem

7. ld -lX11 error

8. PPP: LCP stopped --- help!!

9. HELP:/usr/i486-linux/bin/ld: cannot open -lX11

10. HELP: ld says -lX11 no such file

11. HELP:/usr/i486-linux/bin/ld: cannot open -lX11