[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linux: How to set search path for shared library

Posted on 2006-10-27
1
Medium Priority
?
1,471 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 1200 total points
ID: 17828090
export LD_LIBRARY_PATH
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

872 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