Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-26-2003, 03:28 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
can not find lX11 problem

when i tried to compile a program, i always got the error message:

/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status

The makefile is like that:

LIBSG = -lglut -lGLU -lGL -lXmu -lX11 -lm

I revised the makefile by changing it to the real directory of X11.a file. SO it is like this now:
LIBSG = -L /usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lX11 -lm

Unfortunately, it still didn't work. Checked this forum. People got this similar problrm solved this problem just by revising the makefile as I did. Why it didn't wok for me? Please help. Thank you very much.
Old 08-26-2003, 03:40 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Dou you have XFree86-devel (or similar) package installed?
Old 08-26-2003, 08:17 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
sorry, i am a newbie. could you please tell me how to check it?
Old 08-26-2003, 10:59 PM   #4
LQ Newbie
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
just check. the XFree86-devel is installed
Old 08-27-2003, 12:58 AM   #5
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
visit following site



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
g++ : ld cannot find -lX11 infinitycool Slackware 5 09-23-2004 04:48 PM
Problem with find jowid Linux - Newbie 3 10-09-2003 04:37 PM
Linker problem -lX11 Flibble Linux - Software 1 06-16-2003 01:39 AM
ld -lX11 can not find -lX11 Alexop Linux - Newbie 1 08-18-2002 07:01 PM
ld -lX11 can not find -lX11 Alexop Linux - General 1 08-18-2002 06:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration