RE: Path for Linux .so fies

new topic     » topic index » view thread      » older message » newer message

Thanks Irv!

It's so nice to ask a question and get a quick answer!

I'll take a look at the environment variable, as suggested.

BTW, I'm also using your GTK library as well...nice work!

Jonas
eugtk at yahoo.com wrote:
> 
> 
> --- Jonas  Temple <jtemple at yhti.net> wrote:
> 
> > In Windows when you use open_dll() it searches the
> > path for the .dll.  
> > Obviously not so in Linux.  I had to specifically
> > spell out the path to 
> > the .so!  Is this just a difference between the two
> > or am I missing 
> > something?
> 
> You're missing something :)
> 
> Basically, it looks for the .so in /usr/lib, and 
> then in /lib, so that's where the file should be put.
> If you don't want to do that, you can set the
> environment variable LD_LIBRARY_PATH to point to where
> the .so is located. 
> Or, you can run ldconfig to set up links to .so files 
> in other non-standard places.
> 
> Type 'man ld.so' and 'man ldconfig' to see how Linux 
> handles these things.
> 
> Irv
> 
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu