Dynamic linking defers much of the linking process until a program starts running. Dynamic linking permits a program to load and unload routines at runtine, a facility that can otherwise be very difficult to provide.
Questions tagged [dynamic-linking]
21 questions
14
votes
4 answers
Is it important to obfuscate C++ application code?
In the Java world, sometimes it seems to be a problem, but what about C++? Are there different solutions?
I was thinking about the fact that someone can replace the C++ library of a specific OS with a different version of the same library, but full…

user827992
- 1,175
- 2
- 9
- 19
12
votes
2 answers
Why does Apple only allow for Static Frameworks on iOS?
Clearly Apple has the ability to create dynamically loaded libraries (known as frameworks) for iOS, as they ship several with XCode (such as UIKit). App developers only have the ability to create static libraries, or at best, trick Xcode into…

Joel Fischer
- 223
- 2
- 7
6
votes
3 answers
Why are there two different kinds of linking, i.e. static and dynamic?
I've been bitten for the n-th time now by a library mismatch between a build and deployment environment. The build environment had libruby.so.2.0 and the deployment environment had libruby.a. One ruby was built with RVM, the other was built with…
user7146
5
votes
1 answer
Hot-patching a server: dynamically loading types from an uploaded assembly
In the current project I'm working on, some of the C# classes are being stored as source code in SQL Server database records, and executed as needed using CSScript. This is being done so that the server doesn't have to be taken down to replace the…

Robert Harvey
- 198,589
- 55
- 464
- 673
4
votes
4 answers
Design pattern to create a shared lib architecture
I am making a renderer as a hobby, one thing I thought to try is making the low levelAPI be dynamically swappable, i.e. you could have an opengl or vulkan backend and switch between the two without needing to recompile or even relaunch the…

Makogan
- 261
- 1
- 6
4
votes
0 answers
Dynamically load user code from a common library
My project aims to provide a common interface between multiple different HDL simulators, so users can write test benches that will work no matter the simulator used. In this situation, it is the simulator, not the user's code, that is the driving…

ktb
- 140
- 3
4
votes
2 answers
How do .so files avoid problems associated with passing header-only templates like MS dll files have?
Based on the discussion around this question. I'd like to know how .so files/the ELF format/the gcc toolchain avoid problems passing classes defined purely in header files (like the std library). According to Jan in that answer, the dynamic…

Doug T.
- 11,642
- 5
- 43
- 69
4
votes
1 answer
What should developers know about Windows executable binary file compression?
I'd never heard of this before, so shame on me, but programs like UPX can compress my files by 80% which is totally sweet, but I have no idea what the the disadvantages are in doing this. Or even what the compressor does.
Website linked above…

Peter Turner
- 6,897
- 1
- 33
- 57
3
votes
2 answers
Why use dynamic linking for less-popular libraries?
I know the difference between static and dynamic linking. I know why the notion of a library is important. And I even know why you'd want to link something like OpenGL, platform-specific APIs, or OpenSSL dynamically; lots of applications use them…

JesseTG
- 647
- 5
- 13
3
votes
2 answers
Could Java import C++ classes from a library using JNA or JNI?
In past, I used JNI to access some winapi functions, however winapi is C and therefore just procedural. Now my plan is different and I need to know whether I'm going in the right direction. What I want is:
to make a dynamic C++ OOP library for…

Tomáš Zato
- 853
- 1
- 10
- 20
3
votes
3 answers
Can I include an LGPLv2.0-licensed XSLT stylesheet into my Apache v2.0-license nodejs package?
I am creating an open source tool which leverages some XSLT stylesheets in order to do its work, which is transforming XML to Java code. One of the stylesheets that I want to use is licensed under LGPL v2.0. My tool will be license under the Apache…

pancake
- 131
- 4
3
votes
1 answer
How does a dynamic library's references to a global variable get translated once in the running app?
If a dynamic library exports the address to a global variable defined within the library, how are accesses to that variable translated during dynamic linking so that a running application can interact with it?

Victor
- 947
- 7
- 12
2
votes
1 answer
Dynamic *dll substitution?
I got an architectural problem here.
Let say there is an IShell. It mainly responsible to map user's commands (represented as a linux-like strings) to an appropriate IExecutable's.
Those executables are pretty various. Hence, there are different…

Zazaeil
- 345
- 1
- 8
2
votes
1 answer
Ensuring reliability of cross-compilation
Provided that my code is fully standards compliant with no undefined behaviour, how can I best assure that it will be possible to cross-compile my software for any architecture?
I had some ideas, but I don't if it's wise or possible to implement…

Janus Troelsen
- 279
- 2
- 16
2
votes
2 answers
Use of LGPL libraries on android devices (in a single closed source .apk)
Well this question is actually asked multiple times here already.
but the answers are contradictory
So that's why I ask it again (maybe time changed things). Can LGPL licensed libraries be used in closed source applications on androids?…

paul23
- 1,061
- 1
- 8
- 14