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
1
vote
0 answers

Compiling libPNG DLL with MinGW - large import library

I am trying to compile libPNG with MinGW-gcc under windows. First I compile the sources: gcc -c -O3 src\*.c Then for making a static library: ar rvs lib\libpng.a *.o I get a .a static library which is 273kB large. Fine Then I try to make a DLL…
galinette
  • 8,896
  • 2
  • 36
  • 87
1
vote
0 answers

Prevent import libraries to be created by the linker in Visual Studio 2013

I have an app that does explicit linking to a DLL, i.e. at run time. It is done this way instead of implicit linking because the DLL are plug-ins, and it's how we deliver bug fixes to customers, only providing them the new modified dlls. By…
FrankS101
  • 2,112
  • 6
  • 26
  • 40
1
vote
1 answer

Merging iOS .dylib into framework with lipo breaks bitcode recompilation

I'm trying to build a dynamic iOS framework manually from .dylib files. Binaries are created with cmake and xcodebuild and produce two .dylib files, one containing armv7, armv7s and arm64 and the other x86_64 and i386 architectures. Libraries are…
Legoless
  • 10,942
  • 7
  • 48
  • 68
1
vote
0 answers

Dynamically loaded library and global variables in c++

I'm trying to build a system, that uses dynamic loaded library files (.so files) as plugins in C++14. I build the project using gcc in combination with qt5.5.1 within qtcreator. The problem I'm having is, that I don't fully understand, what dlopen()…
Poehli
  • 307
  • 4
  • 16
1
vote
1 answer

Distribute static/dynamic library to Linux via .deb

I have created a static and dynamic library that I want to distribute. How should I make my .deb file so the headers are put in /usr/include/, the libraries in /usr/lib/, etc.
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
1
vote
0 answers

Is it possible to pass arguments from argv to a function called with dlsym?

This is an assignment from my C class, it's supposed to be an exercise in dynamic libraries. I figured out how to do most of it, but I am stuck on the last step. Basically, I am given a function from a specified file, which i can call using dlsym.…
1
vote
1 answer

What is necessary to build a Linux .so library with C++ in Visual Studio

I just have my Linux-version of project set up (by default I was compiling to Windows). I downloaded Visual Studio extension to Linux cross-compiling. I didn't do anything like that before and it asks me for Linux Build Server. I guess I should…
RazzorFlame
  • 35
  • 1
  • 5
1
vote
0 answers

React Native Dynamically load modules/plugins?

As far as I've searched it appears to be impossible to load modules (=plugins/libraries?) dynamically (I'm very new to React Native..). What I'd like to accomplish is to let the user of the app load additional functions as she/he desires. Example: A…
Otti
  • 46
  • 1
  • 7
1
vote
0 answers

CocoaPods with mixed subdependencies

I'm testing a pod I'm working on which uses Swift (.framework) and has a static dependency: s.dependency 'GoogleAds-IMA-iOS-SDK', '~> 3.2.1' This way, I must use use_frameworks! in the Podfile of my testing project, but I'm getting the following…
1
vote
2 answers

Local dynamic library

Right off the bat, I want to say that I've never worked with dynamic libraries so It's possible that I don't even understand how they work properly. I want to have a fully loaded code running and after some trigger (probably user interaction) I want…
niraami
  • 646
  • 8
  • 18
1
vote
0 answers

OS X dynamic library shared data

now I research about dynamic library. Actually I develop music plugin like vst, audio unit. so I need to share data via plugin. (Because I can't handle process) is there way to share data between plugin( not same, same plugin is possible) I think…
1
vote
0 answers

How to use a dynamic library in a Visual C++ Android Application

I am trying to create a simple Visual C++ Native Activity Application (Android) that uses a dynamic shared library (.so). It seems to be a common thing, but I still can't find any samples for this. Microsoft provides the TwoLibs sample, which is…
mentalmushroom
  • 2,261
  • 1
  • 26
  • 34
1
vote
2 answers

Unable to copy the shared library's soft links with their original size in linux

I have created a shared object of 1.2 M and created 4 soft links for that SO. Size of all the links is 20B and the size of the main so is 1.2M 20 May 23 10:56 libAbc.so -> libAbc.so.2.0.11.0 20 May 23 10:56 libAbc.so.1 ->…
1
vote
1 answer

Why a program can run with a dynamic library not found?

After installing SAP HANA successfully, I can see the sapstartsrv process run: # ps -ef | grep sapstartsrv xn1adm 2143 1 0 Mar29 ? 00:00:05 /usr/sap/XN1/HDB00/exe/sapstartsrv pf=/home/hana/shared/XN1/profile/XN1_HDB00_dhe2 -D -u…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
1
vote
1 answer

Downcasting types returned from dynamic library

I'm writing a dynamic library which returns pointers to base class but I want to downcast them to derived class. Example: //Library code: class A { public: A(void) = default; virtual ~A(void) = default; virtual void Foo(void) { …
user3624760