Sponsored Content
Top Forums Programming Dynamic library load with dlopen Post 302381921 by shade82 on Monday 21st of December 2009 11:38:52 AM
Old 12-21-2009
ldconfig command adds new library libsum and libproduct in system library cache (printable with ldconfig -p command), so I thought that the linker searched the library to resolve symbol "sum" in the default list like do with standard C lib. In fact if I use fprints function I don't have to link the library that resolve symbol "fprints". But I was wrong.
 

10 More Discussions You Might Find Interesting

1. Programming

how to auto load a dynamic library

hi, every body. i have in trouble that how to load a dynamic library by hand. for example, i know how to generate a dynamic library and how to link a dynamic library in makefile. generate a dynamic library: add -dy -G behind cc link a dynamic library in makefile: add -dy -Bdynamic behind cc... (0 Replies)
Discussion started by: subrain
0 Replies

2. Programming

HOw to load dynamic lib from a statically linked program ?

I need to load a dynamic library from a statically linked program. Is there a way without recompiling my program. when i try to do that my program just crashes. If not possible, how can I avoid crashing the program when i try to load the dynamic lib, again without recompiling. If my... (1 Reply)
Discussion started by: disclaimer
1 Replies

3. Linux

load dynamic and shared library in kernel

hi how can i load dynamic or shared library in linux kernel modules . mtaghiloo@yahoo.com (0 Replies)
Discussion started by: mtaghiloo
0 Replies

4. Programming

Can't dlopen() a library containing Thread Local Storage

Hi, I have a small test c program which tries to dlopen a shared library(libjvm.sl). But i get error as "Can't dlopen() a library containing Thread Local Storage" My program is as below when i run the program i get error any pointers why the error?? I am using hp-ux . The... (1 Reply)
Discussion started by: shriashishpatil
1 Replies

5. Programming

loading a dynamic library in linux

is there a way to load a dynamic library in linux? I know tht in AIX u can do it using the loadAndInit() function. Please guide me (2 Replies)
Discussion started by: jacques83
2 Replies

6. UNIX for Dummies Questions & Answers

Library won't load

Trying to run an X11 executable under Darwin, I keep getting: dyld: Library not loaded: /sw/lib/libglib-1.2.0.dylib Referenced from: /usr/X11R6/bin/wav2rsomac Reason: image not found Trace/BPT trap I can't figure out if this is an error in the way the program is running, or if the... (0 Replies)
Discussion started by: sansan
0 Replies

7. Programming

overriding the dynamic library

Hi, I wonder how can we override the dynamic library loaded by ld on start up.(dynamic linked application). so that linker uses the new library to find symbols. Is it possible to do. Cheers. (4 Replies)
Discussion started by: Raom
4 Replies

8. UNIX for Dummies Questions & Answers

Problem with shared dynamic library files

I am having a major problem. Most of the commands that i am running on my centos 5 system is giving the error of type: <dynamic shared library file>:open failed: No such file or directory For example: libgcc_s.so.1: open failed: No such file or directory How can i solve this? (6 Replies)
Discussion started by: proactiveaditya
6 Replies

9. Programming

dlopen failing on library with statically linked dependencies

I am attempting to port a program from OS X to Linux. It's C++ & Qt Creator and I did the original Windows to OS X port, so I tried to make it as POSIX-compliant as possible; the OS X port works well, and the Linux port builds and starts (it's on Ubuntu 9.10) but has some issues running. The... (2 Replies)
Discussion started by: Hodapp87
2 Replies

10. Programming

problem in dynamic library*.so

hello I apologize if my question bothers you I work on a code developed in C + + which worked well on mac os, this code will help create libraries *.so from *.cc and *.h I used this as flags:CXXFLAGS = -g -O2 -fPIC -Wall -ldl -D_GNU_SOURCE ,CXX := g++ and $(CXX)-shared -o $(LIBNAME) $(CLIBLIB)... (0 Replies)
Discussion started by: pheapc
0 Replies
LDBASH(1)							  libbash Manual							 LDBASH(1)

NAME
ldbash -- Dynamic loader for libbash(7) libraries. SYNOPSIS
ldbash [-h | --help] ldbash [-l | --list] ldbash [-L | --load lib,[lib] ...] ldbash [-U | --unload lib,[lib] ...] ldbash [-e | --externlist lib,[lib] ...] ldbash [--externlist-all] ldbash [--i | --internlista lib,[lib] ...] ldbash [--internlist-all] DESCRIPTION
ldbash is used to manipulate libbash(7) libraries. Its main function is to load specific library. It can also print list of available libraries, list functions each library exports, unload functions, etc. In case of --load and --unload ,the output is intended to be passed to bash eval command. Options -h | --help Print options summary -l | --list Display list of available libraries. The libraries names listed, may be passed as parameters to other invocations of ldbash. I.e. first you run ldbash --list to see what is available and then you may load it. -L | --load lib,[lib] ... Load given libraries - i.e. print string that should be passed to eval command. Usually the string contains various source commands. Libraries that given libraries depend on are also loaded. Libraries only loaded if their dependencies are satisfied. Dependencies are resolved using ldbash.cache file, which is created by ldbashconfig(8). -U | --unload lib,[lib] ... Unload given libraries, but not their dependencies. The output should be passed to eval command (in the same manner as with --load ). -e | --externlist lib,[lib] ... List all symbols that are exported by given libraries. Symbols are usually functions that given libraries implement. --externlist-all List all exported symbols of all available libraries. Symbols are usually functions that library implement. -i | --internlist lib,[lib] ... List all internal symbols (i.e. global variables/functions) of given libraries. This is intended mostly for developers that want to develop library of their own, and want to be sure that they don't override any already defined symbol. --internlist-all List all internal symbols of all available libraries. This is intended mostly for developers that want to develop library of their own, and want to be sure that they don't override any already defined symbol. FILES
/etc/ldbash.cache Cache file that contains information about libraries dependencies and list of exported symbols. See ldbashconfig((8)) for further details. BUGS
The script can't load libraries if their file name starts with '-'. (If someone uses file names that start with a '-' he/she deserves it!) AUTHORS
Hai Zaar <haizaar@gmail.com> Gil Ran <gil@ran4.net> SEE ALSO
libbash(7), ldbashconfig(8) Linux Epoch Linux
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy