Questions tagged [dynamic-library]

Compiled binaries capable to be loaded in the process address space in runtime.

Dynamic Libraries are compiled binaries capable of being loaded/unloaded into/from the process address space at runtime.

In the Unix world, they are called shared libraies; in the Windows world, they are known as DLLs (dynamically-loadable libraries).

They can be loaded simultaneously into multiple processes, saving RAM and disk space.

Their file format is similar to, or even the same as, that of binary executables.

484 questions
0
votes
1 answer

Shell scripts, python, ld_library

I've got a program that calls a shell script from python. In the shell script, I add to the LD_LIBRARY_PATH like so, pointing at the .so's from mdbtools.…
mythander889
  • 915
  • 5
  • 16
  • 23
0
votes
2 answers

C header files and dynamic linking error

I have created a dynamically linked library. The only problem I have is that my main program does not recognize my header file. The header file is in a separate folder from my main program. I have tried #include "myheader.h" as well as #include…
sergio
  • 75
  • 2
  • 10
0
votes
1 answer

Minor Version on libgcc_s.so.1 on Linux

I have noticed that on SLES SP1 and Ubuntu 10.04 they only have a major version of libgcc_s in /lib64. However on RHEL 6.1 they have the major version point to a minor version with the date appended to the minor version of the library. I need the…
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
-1
votes
1 answer

Template-Makefile for building dynamic libraries developed in C++ (Linux)

I am looking for a good Makefile template for creating a dynamic loadable library on Linux. The dynamic library is developed in C++. I only want to specify the library name and its source files (.cc) in the Makefile. Furthermore, I want to be able…
Jonas
  • 2,974
  • 4
  • 24
  • 23
-1
votes
1 answer

How to enter the source file of a dynamic lib (.so) when debugging

Recently, I want to add some breakpoints and debug some ROS libraries step by step to learn how these functions are called. These ROS libraries have been built from source. However, I found that all the member functions of libraries are linked to .h…
KKKmelody
  • 31
  • 4
-1
votes
1 answer

Are both static libraries and dynamic libraries compiled during the build process?

When you build an app, You have to compile and then link. Whether you link a framework dynamically or statically, you still have to compile them both. It’s just that for a static library, you link at build time and pay its price through extra…
mfaani
  • 33,269
  • 19
  • 164
  • 293
-1
votes
2 answers

Can Go executable be used as a dynamic library?

I am writing a generic library in GoLang and want to publish it (like a dynamic library) to be used by other apps written in any language. If I write this lib in C/C++, I would have generated a .dll or .so file which can be imported and used in any…
RGC
  • 332
  • 1
  • 2
  • 12
-1
votes
2 answers

How to change where a shared library is looked for?

I have a dynamic library libOne.dylib written in Rust and I'd like to call it from Java over JNI. I have the sources for the Rust part but can't change them so I've written a thin C wrapper as the JNI counterpart. I can compile and link my wrapper…
-1
votes
1 answer

Is there a difference in linking standard and custom dynamic library?

I don't get how standard library like libc is linked.I use MingW compiler. I see that there is no libc.dll file in its bin folder.Then how libc is linked? How does compiler know difference between custom and dynamic library?
user11747064
-1
votes
2 answers

How to delete Pointer in a Dynamic Library when its still used by other Libraries

Currently, I am testing some with Dynamic libraries and have some trouble with the Data Management/deletion... how can I 'notify' a Pointer that it got invalid? What I need: Thread safe Way to delete Data from its library and invalidate…
DerGaijin
  • 31
  • 3
-1
votes
1 answer

Swift keeps embedding its 5.0 standard library in my project

I've checked that all of the frameworks in my app, as well as the main binary, have the same swiftversion (1100.2.255, which means Swift 5.1). However, I see that Xcode is still embedding standard library dylibs (all for Swift 5.0). In my build…
meisel
  • 2,151
  • 2
  • 21
  • 38
-1
votes
1 answer

Import Library benefit

I understand pros and cons of static and dynamic linking. But what is the benefit of Import Library?
-1
votes
1 answer

dynamic graphic representation for extended dijkstra's algorithm

I am working on a project which requires to show the output of the extended Dijkstra's algorithm in a dynamic form. I tried and till now i am getting static graphs only. By dynamic I mean that I want to show nodes traveling through the relevant path…
-1
votes
2 answers

How do I use a C dynamic library in a C++ framework?

I'm trying to use C Redis client library in the Cinder framework. I'm not sure where to put the extern "C" declarations or if it works even if I put it correctly. Please help.
dazzphot
  • 307
  • 1
  • 3
  • 11
-1
votes
1 answer

C++ detect memory usage on dynamic library

I use open source dynamic library (spider monkey) , and found memory usage is growing and it will be free when program exit. but I didn't know where ? How do I detect something like this I've used valgrind to detect memory leak , and it report no…
Denny
  • 449
  • 4
  • 17
1 2 3
32
33