On Mon, Dec 02, 2002 at 12:57:52PM +0000, Pedro Quaresma de Almeida wrote: | Colin Watson writes: | > On Mon, Dec 02, 2002 at 12:26:37PM +0000, Pedro Quaresma de Almeida wrote: [...] | > You need to link the X library using -lX11. | > | | That's my problem! When I do | | > gcc xdriver.c -shared -lX11 -o xdriver.so | | I get | | /usr/bin/ld: cannot find -lX11 | collect2: ld returned 1 exit status
| Is this a problem with the PATH, I have tried to compile with
| -I/usr/include
| but without any luck.
It is a path problem, but its the library path, not the include path
thats the problem.
gcc xdriver.c -shared -L/usr/X11R6/lib -lX11 -o xdriver.so
| But I have the xlibs...
|
| ii xlibs 4.1.0-5 X Window System client libraries
| ii xlibs-dev 4.0.3-4 X Window System client library development
You should upgrade xlibs-dev so that the headers match the library you
have.
-D
--
Thy Word is a lamp unto my feet
and a light unto my path.
Psalms 119:105
http://dman.ddts.net/~dman/
msg16561/pgp00000.pgp
Description: PGP signature

