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.

learn more… | top users | synonyms

2
votes
3answers
190 views

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 ...
6
votes
2answers
1k views

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 ...
1
vote
2answers
429 views

Use of LGPL libraries on android devices (in a single closed source .apk) [duplicate]

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 ...
1
vote
2answers
147 views

What is global mutable variable behaviour in dynamically-linked libraries?

When a dynamically linked library includes a global mutable variable, such as a container for state initialised when loading the library, how do references to that variable behave when running an ...
0
votes
4answers
128 views

How could distribution and reuse flexibility be hurt by linking my program as a static or dynamic library?

I'm writing a small program that I want to be able to link with other programs. I also intend to run it from a command line interface, and maybe later with a GUI interface. How could distribution ...
0
votes
0answers
253 views

How does a dynamic library's references to a static 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 ...
3
votes
2answers
462 views

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). ...
4
votes
1answer
287 views

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 ...
4
votes
3answers
4k views

Is it important to obfuscate C++ application code?

In the Java world, it seems to sometimes 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 ...