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
4
votes
1 answer

How to dynamically load a compiled native library into an Android application?

I am trying to dynamically load a native library libhello_world.so into an example Android project. My goal is the application to run normally and at runtime to fetch the library and load it so it can be used. Currently the structure of the android…
kampias
  • 459
  • 1
  • 10
  • 21
4
votes
1 answer

Robot Framework Library Dynamic Import Not Remaining Global

Some background I'm using Robot Framework with Python to create a small framework for test automation. I have a few different libraries; a couple are application-specific and one has keywords that I would like to be always available. This…
Sync
  • 107
  • 1
  • 8
4
votes
1 answer

Simple modern cross-platform dlopen/loadLibrary wrapper in C++

I'm working on a cross platform project where I have to load dynamic libraries. I therefore created a very basic platform independent templated wrapper class around dlopen/loadLibrary that act like a factory class and return unique_ptrs of the…
Théo Champion
  • 1,701
  • 1
  • 21
  • 46
4
votes
1 answer

DYLD_PRINT_LIBRARIES not working

Trying to experiment with other DYLD_ properties I've found that jvm is manipulating with properties and they are ignored during execution. My Java test: class Env { public static void main(String... args) { …
okutane
  • 13,754
  • 10
  • 59
  • 67
4
votes
2 answers

Building and Using a DYLIB in Xcode

I'm trying to build a .dylib in Xcode. Currently the .dylib builds, but when I drag the .dylib into another project and try to #import one of the headers (Seeker.h) in the .dylib, I get this error: *: No such file or directory Seeker.h: No…
jstm88
  • 3,335
  • 4
  • 38
  • 55
4
votes
1 answer

how to build an aggregate target for a dynamic library which contains dependencies as cocoapods

i am trying to make an ios dynamic library.This library contains many dependencies installed using cocoapods.I built it with the usual ios dynamic library template and i am able to use it in other projects where it works only for a single…
sujith1406
  • 2,822
  • 6
  • 40
  • 60
4
votes
1 answer

Linux C/C++ allocate/deallocate memory in dynamic library

I have to split my application into several logical modules. mainapp: module1.so module2.so module3.so and so on Where each module is an *.so library, which will be loaded during runtime. Each module shares the same interface and will return some…
Dejwi
  • 4,393
  • 12
  • 45
  • 74
4
votes
1 answer

How to determine which dynamic library is responsible for creation of a pointer?

Assume you have a program that loads several shared objects/dynamic libraries using dlopen(). Given a pointer to a global object (e.g. static member variable), is it possible to determine the pointer is allocated in the boundary of which library?
CommanderHK
  • 1,128
  • 11
  • 7
4
votes
1 answer

Include static library into shared library using Gradle's Native Binary support

I have 2 projects: A static libray libSL.a built with the NDK r9 and Android.mk. An Android Studio project containing: WL.java (a JNI wrapper around libWL.so). jniWL.h and jni/WL.c (libWL.so's source code), which require…
4
votes
0 answers

How to force libtool to use static libraries when building a dynamic one?

I'm building a shared library of libsndfile for Windows out of the current development tree. This library depends on 3 others: libogg, libflac and libvorbis. So I built them all but disabled the generation of dynamic libraries during compilation…
Kao Dome
  • 105
  • 1
  • 1
  • 8
4
votes
2 answers

Netbeans / C++: Link 2 projects together (Executable / Dynamic Library)

I am creating 2 projects at the moment. The first one is an executable application. The second one is a Dynamic Library. Is there a way to link the Dynamic Library to the application in Netbeans so when I run the application I can load in the…
Jeroen
  • 15,257
  • 12
  • 59
  • 102
4
votes
2 answers

How to get a pointer to a specific section of a dynamic library (Linux ELF)?

As can be seen in the second answer for this question , it's quite simple to get a pointer to an specific section of a program from within itself, using the section's name. With libelf, just open the program's own file, loop over all sections (which…
LuisABOL
  • 2,951
  • 4
  • 25
  • 57
4
votes
1 answer

Issue with Qt dynamic library in Linux

I built an application based on QuickFIX Engine in Qt, named fixapp; it works fine. My broker asked me to specify a local port to connect to them. Then I couldn't find such configuration file, so I modified the source code of QuickFix. I used the…
Ian Xu
  • 79
  • 6
4
votes
1 answer

like nm -D or readelf -s, list dynamic symbols with python ctypes?

is it possible implement nm -D or readelf -s using python ctypes? I want to list all dynamic symbols of a .so file. Thanks in advance!
est
  • 11,429
  • 14
  • 70
  • 118
3
votes
5 answers

.net howto use .dlls wisely?

In my current .net projects I am using various .dlls files, some externaly written and some created by me. Now I am asking myself , what are the best practises to handle different .dll files over different solutions and projects and get them working…
Harry
  • 1,313
  • 3
  • 22
  • 37