what is happening with -lxxx for .so libraries?

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 02/28/05


Date: 28 Feb 2005 13:13:05 GMT

Hello!

When creating .so libraries on the elf system, out of habbit, I was
always placing -lxxx switches, to indicate all of the libraries that I'm
linking against. One of my collegues didn't do that, but his so library
was still working. But today he tried to do the same thing on some other
machine and there things failed untill he added -lxxx switch. Now I got
curious, why?

Why it was working on the first machine and stopped on the other?

What is so different between the so linked with -lxxx switch and the one
linked without it? In both the symbols from other libraries are marked
with 'U'.

At first I thought that it has something to do with the placement of
those libxxxx.so. But on the machine, where things were failing these
libraries were in /usr/lib and on the machine where it worked it was in
the subdirectory of it.

-- 
Minds, like parachutes, function best when open


Relevant Pages

  • Re: How to Change the Default View When Opening WMP11
    ... then go to the Library tab and by default, ... Type 3 or 4 letters of the album or artist name, ... a great deal of help with large libraries. ... maybe adding a switch to the WMP shortcut or something? ...
    (microsoft.public.windowsmedia.player)
  • Re: I need the 7.1 libs for 64-bit cross-compilers in Platform SDK
    ... Read the license agreement that you got with the PSDK. ... I know that extended support for Visual Studio 6 / VC6 has been ... out there is still using the 6.0 libraries. ... originally you'd have known that the switch to 2005 was inevitably coming. ...
    (microsoft.public.vc.language)
  • Re: schematics and PCB design software. whats best?
    ... Unlike many other CAD packages Eagle does not require those dreaded dongles. ... with most libraries contributed by users. ... I haven't tried these two yet but I am not going to switch again. ...
    (sci.electronics.design)
  • Re: [NEWBIE} Windows IO?
    ... >> You might want to switch to Unicon. ... >> libraries, an IDE, and network libraries. ... I switched over some time ago when Windows Icon was not "moving along". ...
    (comp.lang.icon)
  • Re: schematics and PCB design software. whats best?
    ... Unlike many other CAD packages Eagle does not require those dreaded dongles. ... with most libraries contributed by users. ... I haven't tried these two yet but I am not going to switch again. ...
    (sci.electronics.design)