The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
how to read the relative path priyanka3006 Shell Programming and Scripting 5 07-31-2009 08:53 AM
Help with absolute path and relative path mzero UNIX for Dummies Questions & Answers 1 03-02-2009 10:29 AM
Finding relative path of a file chiru_h Shell Programming and Scripting 4 04-16-2007 09:20 PM
getting full path from relative path polypus Shell Programming and Scripting 4 03-25-2007 01:08 PM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 12:47 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 4 Weeks Ago
emitrax emitrax is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 38
Linkers and Loaders: how to (if possible) specify relative path for shared library to the loader

Hi,

first of all I apologize if this is not the right section to post this question, but I didn't
know where else to post it.

I've developed an application which uses a shared library developed by me.

Basically I want to give both the application and the shared library without the source,
and avoiding any installation process.

What I'd like to achieve is to provide a zip packet, which when unpacked, without doing
anything else, can run the application right away.

My problem is how to tell the loader to look for the shared library used in a relative path (perhaps the same of the application (working directory).

Usually you have to tell the loader which directory to look for for the library you want to use, by listing the directory in its .conf file (ld.so.conf), but I want to avoid this.

Is this possible to do? If so, how?

The working environment is of course Linux.

Any hint would be appreciated.

Regards,
S.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0