I'm not sure that that's the answer to the problem.
I think to get an answer from the list you'll need to supply a bit more
info. If we could see the link command you're using and the options passed
to it that may help. There are various options that can specify static only
or dynamic only linkage, or that can tell the compiler/linker to ignore
ldconfig settings, and we don't know if you may have inadvertantly use one
or more of them.

.so files are shared libraries (Shared Object)
.a files are static libraries (Archive)
neither are used exclusively for development or release and often both are
provided - ie you may get both static and shared versions of the same
library, be it development or release.

Note also that ldconfig -v probably gives you more info than you really
need, and will take significant time to complete, when simply checking for
library resolution. I generally use ldconfig -p when just checking that the
lib is searchable.

ty

> -----Original Message-----
> From: Visser, Martin (Sydney) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 11 July 2002 17:26
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [SLUG] finding libraries to link (no subject)
> 
> 
> Melinda,
> 
> I haven't seen a reply for this yet, so I thought I'd give it a go.
> 
> Not having my linux box up at the mo' but I think you will 
> find that the .so files are just the "runtime" libraries 
> dynamically linked. You need to have the development versions 
> of both X11 and pgplot libraries which will be .a. If you are 
> building  a standard package, normally running "configure" 
> will tell you that you don't have the required libraries. 
> From memory the Makefile will define an environment variable 
> (or add -L flag????) as to where to get the libraries during linking.
> 
> I'm short on detail and confidence, but hopefully this leads 
> you in the right direction :-)
> 
> 
> Martin Visser
> Network Consultant - Global Services
> COMPAQ, part of the new HP
> 
> 3 Richardson Place
> North Ryde, Sydney NSW 2113, Australia
> Phone *: +61-2-9022-1670    Mobile *: +61-411-254-513
>    Fax 7: +61-2-9022-1800     E-mail * : martin.visserAThp.com
> 
> 
> 
> 
> -----Original Message-----
> From: Melinda Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 10 July 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: [SLUG] (no subject)
> 
> 
> 
> This is probably a sily question but I keep getting X11 and 
> pgplot errors
> when compiling things like:
> 
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
> make[1]: *** [sm] Error 1
> 
> /usr/bin/ld: cannot find -lpgplot
> 
> The X libraries are installed as is pgplot with PGPLOT environment
> settings all set.
> 
> If I check /etc/ld.so.conf:
> 
> /usr/kerberos/lib
> /usr/X11R6/lib
> /usr/lib/qt-3.0.3/lib
> /usr/lib/qt2/lib
> /usr/lib/wine
> /usr/lib/sane
> /usr/local/pgplot
> 
> and
> 
> ldconfig -v | grep pgplot
> ldconfig: Path `/sw/pgplot' given more than once
> /usr/local/pgplot:
>       libpgplot.so -> libpgplot.so
> 
> 
> Doesn't this mean any -lpgplot calls should work?
> 
> ANy help would be appreciated.
> 
> Thanks,
> 
> Melinda
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
> 
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to