Solved

Linux: How to set search path for shared library

Posted on 2006-10-27
1
1,448 Views
Last Modified: 2010-08-05
Hi Experts,

I want to debug a program using GDB.  my small program uses a shared library which resides in my current directory.  

When I run the program normally, I use the following method to load the library.

%LD_LIBRARY_PATH=. ./MyProgram

But, if I want to run gdb how should I tell the debugger to search the current directory for the shared library along with the standard paths( My program uses some other installed libraries in the standard path as well )
0
Comment
Question by:ambuli
1 Comment
 
LVL 17

Accepted Solution

by:
rstaveley earned 300 total points
Comment Utility
export LD_LIBRARY_PATH
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now