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

Swift Run Time Library vs. Swift Standard Library

In this tutorial on how to use CocoaPods I am having trouble understanding the following paragraph: Unlike Objective-C, the standard Swift runtime libraries aren’t included in iOS! This means your framework must include the necessary Swift…
J.beenie
  • 861
  • 10
  • 22
3
votes
1 answer

iOS Dynamic Framework for Carthage and Cocoa pods dependent on other frameworks

I'm totally new to iOS Framework development. I've made a framework project which is dependent on JSONModel and AFNetworking. Now I need to distribute this framework through cocoa pods and carthage. What are the steps that I should take to make that…
Fawkes
  • 3,831
  • 3
  • 22
  • 37
3
votes
3 answers

Is it possible to know which library pulled in another one using ldd?

Once an application has been linked with the dynamic libraries it requires, is it possible to find out which exact library has pulled in another one that I'm seeing in the list? For example, today I had a situation where a library that shouldn't…
iksemyonov
  • 4,106
  • 1
  • 22
  • 42
3
votes
1 answer

Debugging a dynamically-loaded library in c++ with QtCreator

I am building an application which dynamically loads shared-libraries plugins with qtcreator on linux. The plugin is built in a separate folder, then copied to the main application plugin folder. The application looks for plugins at startup and…
Louen
  • 3,617
  • 1
  • 29
  • 49
3
votes
1 answer

Link Realm within a dynamic library ends in "ld: framework not found Realm for architecture i386"

I've created a custom dynamic library (let's call in LogLibrary.framework) in Swift 2.1. No I'd like to link the Realm.framework and RealmSwift.framework with it. I did follow the installation instructions provided on…
charlyatwork
  • 1,187
  • 8
  • 13
3
votes
0 answers

static library symbol conflict

We have the following setup; A dynamic library (compiled with /MD). It depends on; another dynamic library (compiled with /MD) a static library (compiled with /MD) This produces the following linker error; my_static_library.lib(my_object_file.obj)…
LarsA
  • 595
  • 2
  • 6
  • 14
3
votes
0 answers

symbol lookup error on C dynamic library

I've a problem that drive me crazy. I've an Ubuntu developer machine. I've downloaded a toolkit and I've included it into my C project (eclipse). Well, if I build the project using eclipse on a centos VM the resultant application, copied to the…
3
votes
1 answer

Double delete of static variable when linking two vendor supplied libraries

I have a problem similar to this question: c++ linux double destruction of static variable. linking symbols overlap only my issue is with two vendor supplied libraries, so I do not have access to the code. The vendor has two dynamic libraries and…
pythonic metaphor
  • 10,296
  • 18
  • 68
  • 110
3
votes
0 answers

Is it possible to submit the app with dynamic lib to Appstore for iOS 8

Apple supports dynamic library (.dylib) from iOS 8 [ iphone/ipad app ]. My research shows that if we use "dlopen" [ void* dylibLink = dlopen(dylibPath, RTLD_NOW); ] method Apple will reject our app. If anyone has successfully submitted an app with…
3
votes
1 answer

How to create Touch Framework or Static Lib that includes Swift and ObjC code and build for iOS7?

I wanted to create a separate library that has mostly Objective-C code but also some Swift files. I tried to use Xcode 6's Touch Framework, which worked fine if my deployment target was >= iOS8.0 in final product. But I need to build for IOS7 and…
3
votes
1 answer

Qt: Using QCoreApplication / QNetworkAccessManager with Shared Dynamic C++ Library

I am developing a shared library using Qt as the main IDE. The library should be dynamically linked for any application using it and is required to be used for Windows, OSX and Linux with possible mobile platforms planned for the future. Qt comes…
Pettor
  • 491
  • 2
  • 6
  • 16
3
votes
2 answers

Dynamic Libraries, dependencies and distribution?

Before I started developing any more c++ projects, I wanted to establish a good multiplatform environment and use some basic form of revisioning (rsync). To do this I learn't how to construct makefiles (with uname variables) and also started using…
josh247
  • 155
  • 1
  • 13
3
votes
1 answer

libboost_*.so: file not recognized: File truncated When dynamically linking using libtool and automake to generate makefile

I am getting the following error: ../../../external/boost-1.55.0-x86_64-linux-gcc-4.8.2/lib/libboost_system.so: file not recognized: File truncated If I swap the order of boost_filesystem and boost_system I get the following…
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
3
votes
2 answers

is it a common practice to have the static and dynamic versions of a library with the same name?

I downloaded a library (NAG c libraries to be precise) and both the static and dynamic versions of the library have the same name (libnagc_nag). At the beginning I was having troubles because I was trying to link to the static version in OS X and by…
German Capuano
  • 5,183
  • 6
  • 23
  • 35
3
votes
1 answer

How to create a sandbox environment in C++?

Is there a way to create a sandbox environment inside C++ where you can either: - Run processes in - Load Dynamic Libraries in (Linux) Dynamic Libraries are preferred because the easy communication between the main process and the sand-boxed…
Jeroen
  • 15,257
  • 12
  • 59
  • 102