The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Seeking Some libs for AIX 5.3 eternalflame High Level Programming 0 04-02-2008 02:08 AM
who to compile needed libs with Make umen Shell Programming and Scripting 0 05-01-2006 03:42 AM
dlopen failed! virmin High Level Programming 1 10-30-2005 09:19 PM
dlopen issue with a dll codeman SUN Solaris 0 07-05-2005 12:54 AM
compiling with include & libs ls1429 High Level Programming 1 02-14-2002 11:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-17-2005
Registered User
 

Join Date: Nov 2005
Posts: 25
default location of libs in dlopen

Hi

Where is the default location of libs to search, when we specify any lib in dlopen function.
And if we want to specify a custom location, how will we do it?

thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 11-18-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
The location of libraries is specified by the linker at the time the file is linked.
Some environments support a SHLIB_PATH or LD_LIBRARY_PATH envionment variable - when you link with +s.

This means dlopen will use /usr/lib first, then search through the directories speficed in the environment variable.

try
Code:
man ld
and search for +s or PATH

Last edited by jim mcnamara; 11-18-2005 at 08:47 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0