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
3
votes
2 answers

Eclipse managed make with static and dynamic linked libraries at the same time

I am using the managed make functionality of Eclipse CDT. Creating the project using dynamic only libraries is working as expected. But the boost_unit_test_framework should be linked statically, because it contains the main function. On the command…
Christian
  • 1,017
  • 3
  • 14
  • 30
3
votes
1 answer

pyenv: how to install python dynamic/shared library

When I compile python from source manually (with --enable-shared), I get a dynamic library in the lib directory. For example: $ ls $PYTHON_INSTALLATION_DIRECTORY/lib libpython3.9.so libpython3.9.so.1.0 libpython3.so pkgconfig python3.9 However,…
S.V
  • 2,149
  • 2
  • 18
  • 41
3
votes
1 answer

How are dynamically loaded libraries represented in deployment diagrams?

My deployment diagram has a device with a Windows ExecutionEnvironment in it. The application uses several dynamically loaded libraries, some of which are deployed with the application, others into the system itself. How are dynamically loaded…
Andreas
  • 5,086
  • 3
  • 16
  • 36
3
votes
1 answer

Undefined Symbol error when linking pybind11 with a dynamic library that calls an external function

I'm trying to link a pybind11 module with a .so dynamic library, and the library calls functions not implemented in the .so file. It works fine in a normal c++ executable file, but raises Undefined Symbol error when imported in python. Here is a…
tihiya
  • 33
  • 1
  • 4
3
votes
1 answer

Where does eclipse look for binary libraries in plugins?

I have an eclipse plugin (developed by a third party, no source code available) that uses a binary library to do some of its work. The library is open source. The distributed plugin includes only the binary for Windows, but I can easily compile it…
divegeek
  • 4,795
  • 2
  • 23
  • 28
3
votes
2 answers

libgpiod API usage (Linux shared libraries)

Does anyone have any experience with the libgpiod API? I have installed it on my linux platform but am unable to call its library functions. I installed by: git clone git://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git cd…
Bastinoboy
  • 63
  • 1
  • 4
3
votes
1 answer

Get filename of dynamic library within the library itself

I'm doing a dynamic library (loader.so) and want to open a file depending on the name of the library. The idea is to copy/symlink the library to open different files. Is it possible to find the filename of a library opened with dlopen(), from within…
thomasa88
  • 630
  • 1
  • 4
  • 8
3
votes
2 answers

How to manually include a dynamic library in an iOS APP

I have an iOS app (not made with xcode) and I need to include in it a dynamic library. I have this library on my computer: \webrtc \WebRTC.framework \Headers \*.h \Modules \module.modulemap …
zeus
  • 12,173
  • 9
  • 63
  • 184
3
votes
0 answers

Delphi/ios: How to include a dynamic library in my iOS app?

Does someone already successfully deployed an ios App with include a dynamic library? I try to include this library: https://cocoapods.org/pods/GoogleWebRTC (https://dl.google.com/dl/cpdc/0d72a13625d8f3e5/GoogleWebRTC-1.1.25331.tar.gz) But its…
zeus
  • 12,173
  • 9
  • 63
  • 184
3
votes
3 answers

Will using shared library in place of static library effect memory usage?

I am linking against 10 static library. My binary file size is getting reduced when I am using dynamic library. As I know using dynamic library will not reduce memory usage. But my senior told me that using shared library will also reduce memory…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
3
votes
1 answer

How can "plugins" loaded by libdl refer to symbols in the program which loaded them?

Imagine that you have an application with a plugin based architecture, where each plugin is a *.so file that is dynamically loaded with dlopen(). The main application can refer to symbols via dlsym(), and so it may call functions of the plugin. How…
brenns10
  • 3,109
  • 3
  • 22
  • 24
3
votes
1 answer

how to unload dynamic lib in lua

I'm using luajit2.0.4 as lua interpreter. here is the situation: after I load a dynamic lib like cjson.so with cjson = require('cjson') a=cjson.new() -- blahblah... do things i want then I need to overwrite the lib file, ( a situation of hot…
Knova Chan
  • 135
  • 8
3
votes
3 answers

What's difference between Dynamic Library and Dynamic Framework in iOS?

I was learning the knowledge about Library and Framework in iOS recently. However I was confused about the concept of Dynamic Library and Dynamic Framework, and I didn't found the creation of Dynamic Library.
huangxinyu
  • 247
  • 3
  • 11
3
votes
1 answer

Building C dynamic shared library gives undefined symbol

Why building static library (.a) doesn't give any error and works correctly: $(LIBRARY): assertion.o $(AR) $(OUTPUT_STATIC_LIB_DIR)/$(LIBRARY) $(OUTPUT_DIR)/assertion.o Simultaneously, when building shared library (.so) gives me such error:…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
3
votes
2 answers

Creating and Using a Simple .dylib

What's the most basic way to create and use a .dylib in Xcode? Here's what I have so far: File: MyLib.h #include namespace MyLib { void SayHello(std::string Name); } File: MyLib.cpp #include #include #include…
Maxpm
  • 24,113
  • 33
  • 111
  • 170