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

Re: problem with xlibs?



On Mon, Feb 03, 2003 at 09:39:20AM +0200, Egor Tur wrote:
> Hi.
> > > I have this when compile some programme:
> > >
> > > /usr/X11R6/lib/libX11.a(XlibInt.o): In function `_XEventsQueued':

You're trying the link a *static* library that depends on libpthread.
If you link against the shared library, then that should not be an
issue.

The difference is between:

$ gcc foo.c -L/usr/X11R6/lib -lX11  # link against shared library

and

$ gcc foo.c /usr/X11R6/lib/libX11.a # *incorporate* object archive

> Thanks. This work.
> But I don't understand why. I have 2 debian machine and install the
> same program on them.
> First:
> dpkg -l xlibs-dev
> ii  xlibs-dev      4.1.0-17 
> dpkg -l libc6
> ii  libc6          2.2.5-14
> Second:
> dpkg -l xlibs-dev
> ii  xlibs-dev      4.2.1-4
> dpkg -l libc6
> ii  libc6          2.3.1-9
> 
> On first computer programme build without problem but on second I have
> mistake with libX11 and  pthread.  Thanks.

Do you have the shared library on the second computer?
(/usr/X11R6/lib/libX11.so.6.2 and links libX11.so.6 && libX11.so)

-- 
echo ">gra.fcw@2ztr< eryyvZ .T pveR" | rot13 | reverse



Reply to: