Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 May 2006 04:41:57 -0700
From:      soralx@cydem.org
To:        cswiger@mac.com, freebsd-questions@freebsd.org
Subject:   Re: linker wiredness?
Message-ID:  <200605090441.57320.soralx@cydem.org>
In-Reply-To: <44607B4C.8060801@mac.com>
References:  <200605090416.24346.soralx@cydem.org> <44607B4C.8060801@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> soralx@cydem.org wrote:
> > [root@soralx /geda-gschem-20060123]# rm ./conftest
> > [root@soralx /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -lstroke
> > /usr/bin/ld: cannot find -lstroke
> >   
> >>>>            ^^^^^^^^^^^^^^^^^^^^  -- why???            <<<
> >>>>         
> > [root@soralx /geda-gschem-20060123]# ldconfig -r|grep stroke
> >         441:-lstroke.0 => /usr/local/lib/libstroke.so.0
> >         442:-lgstroke.0 => /usr/local/lib/libgstroke.so.0
> > [root@soralx /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -L/usr/local/lib -lstroke
> > [root@soralx /geda-gschem-20060123]# ll ./conftest           
> > -rwxr-xr-x  1 root  1000  5594 May  9 04:06 ./conftest*
> >
> > Am I missing something here?
> 
> FreeBSD's linker doesn't add /usr/local/lib to the search path by 
> default, unlike some other operating systems.  The "-L/usr/local/lib" 
> flag is therefore required...

but ldconfig already found the library (line 441)!?
 
Timestamp: 0x44607FB0
[SorAlx]  ridin' VN1500-B2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605090441.57320.soralx>