libtool
[Top][All Lists]
Advanced

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

Re: libtool: link: cannot find the library `'


From: Harring Figueiredo
Subject: Re: libtool: link: cannot find the library `'
Date: Thu, 16 Dec 2004 14:42:33 -0500

Found the problem --

 I had to manually add the -L/usr/lib. Appremtly it does not know
where to find -pthread

 xftptest_LDADD =  @GNET_LIBS@ @GTK_LIBS@ -L/usr/lib -pthread


On Thu, 16 Dec 2004 13:34:15 -0500, Harring Figueiredo
<address@hidden> wrote:
> Folks:
> 
>  I am getting this error:
> 
>  libtool: link: cannot find the library `'
> 
>  I have searched the archives and could not find any messages related
> to that - The single ont that mentioned that was  was a unified diff,
> which I applied and did not solve the problem. It seems to be related
> to the -pthread lib.
> 
>  Here is the link command.
> 
> /bin/sh ../../libtool --mode=link gcc  -g -O2  -o xftptest  xftptest.o
> -pthread -L/opt/install/gnet-2.0.5/lib -L/opt/install/gtk-2.4.7/lib
> -lgnet-2.0 -lgthread-2.0 -lglib-2.0   -Wl,--export-dynamic
> -L/opt/install/gtk-2.4.7/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
> -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> 
> Here is the Makefile.am
> 
> AUTOMAKE_OPTIONS = gnu
> 
> LDADD =    @GNET_LIBS@  @GTK_LIBS@
> CPPFLAGS =    @GNET_CFLAGS@  @GTK_CFLAGS@
> 
> lib_LTLIBRARIES = filexfer.la
> INCLUDES = -I../../src @GNET_CFLAGS@
> 
> #NULL PLUGIN stuff
> filexfer_la_SOURCES = xftp_plugin.c xftp_server.c
> 
> filexfer_INCLUDES = @GNET_CFLAGS@  -I../../src
> 
> filexfer_la_LDFLAGS = -avoid-version -module
> 
> bin_PROGRAMS = xftptest
> 
> xftptest_SOURCES = xftptest.c
> xftptest_LDADD =  @GNET_LIBS@ @GTK_LIBS@
> 
> The .la is build sucessfully - the binary gives me the problem
> 
> BTW: libtool version is:
> 
>  libtool --version
> ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36)
> 
>  I have not upgraded it yet with fear to break all of the other stuff. :P)
> 
>  Thanks for any help.
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]