[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bo: Problem with Xlib



Hello everybody,

another great question of mine... or two...
but i didn't find any solution.

Yesterday i tried the first time to use some Xlib functions.
I included <X11/Xlib.h>.

The problem is that the compiler tells me things like
undefined reference to `XOpenDisplay'
undefined reference to `XDefaultVisual'
(but DefaultVisual seems to work...)

Is there a header which i forgot to inlcude?
Or do i have to link with -lX11 ?

I tried to link, but got only an error
ld: cannot open -lX11: No such file or directory
Looks like wrong paths (i tried others)...

Sure, the answer is written somewhere in the books.
But i didn't find it until now and so i'm asking.

What do i do wrong?
Maybe someone can remove the blindfold from my eyes :)


Greetings,

	Mac


-- 
Markus Lechner       (Company - LightWolf)      |   The 
Prometheus-Project
Markus.Lechner@munich.netsurf.de                |   
Mac@munich.netsurf.de
http://home.munich.netsurf.de/Markus.Lechner    |   (only for
Project-Team)
PGP-Public-Key(s) are available                 |


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: