lX11 lXext lXi missing

While I try to compile a sample script

gcc sample1.c -lMesaGLU -lMesaGL -lXext -lX11 -lm -lglut -lXi -lXmu  -B/usr/X11/lib

I got errors that the file lXext -lX11 -lXi are missing better not found. So questions is where to find? (Most wanted is a rpm File.)

I use Suse 6.2 so perhaps it is somewhere on the cd?

Who is Participating?
finikConnect With a Mentor Commented:
First, check whether the library are really missing on your system, or it is just gcc that couldn't find them.
If you have "locate", find them using it(example):
[finik@finik]$ locate libX11
otherwise use "find" for the same effect.

So, say you've found them in some <directory>,
now you have to include the -L<directory> parameter in the gcc command line.
I'm 90% sure the libraries are on your system,
it is an essential part of the X-Free system.
The header files, however may not be present,
then you can check whether you've installed
X-Free developement package (sorry, don't know how it is done in Suse)
mgoergenAuthor Commented:
Perfekt that was the problem

Now it works fine
All Courses

From novice to tech pro — start learning today.