Top "Dynamic-linking" questions

Dynamic linking is a system which allows libraries to remain separate from programs until loaded, contrast static linking.

When to use dynamic vs. static libraries

When creating a class library in C++, you can choose between dynamic (.dll, .so) and static (.lib, .a) libraries. What …

c++ dll shared-libraries static-linking dynamic-linking
Static linking vs dynamic linking

Are there any compelling performance reasons to choose static linking over dynamic linking or vice versa in certain situations? I've …

c++ c performance static-linking dynamic-linking
Telling gcc directly to link a library statically

It feels strange to me to use -Wl,-Bstatic in order to tell gcc which libraries I want to link …

gcc linker static-libraries dynamic-linking
What happens to global and static variables in a shared library when it is dynamically linked?

I'm trying to understand what happens when modules with globals and static variables are dynamically linked to an application. By …

c++ linker global-variables global dynamic-linking
What do 'statically linked' and 'dynamically linked' mean?

I often hear the terms 'statically linked' and 'dynamically linked', often in reference to code written in C, C++ or …

c# c++ linker static-linking dynamic-linking
Is it OK to use DYLD_LIBRARY_PATH on Mac OS X? And, what's the dynamic library search algorithm with it?

I read some articles discouraging of the use of DYLD_LIBRARY_PATH, as the the path of dynamic library should …

language-agnostic macos dynamic-linking dll
What do linkers do?

I've always wondered. I know that compilers convert the code you write into binaries but what do linkers do? They've …

c++ linker dynamic-linking
Getting VBox Guest Addtions for Android x86

I am running Android x86 on VirtualBox, and I want the pointer integration enabled, which needs VirtualBox Guest Additions to …

android linux-kernel virtualbox dynamic-linking android-x86
Linking GLEW with CMake

How can you link GLEW to a project with CMake? We've been trying to link GLEW to our project using …

cmake dynamic-linking glew
Static and Dynamic/Shared Linking with MinGW

I want to start with a simple linking usage to explain my problem. Lets assume that there is a library …

c++ gcc mingw static-linking dynamic-linking