Top "Dynamic-linking" questions

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

Call Go functions from C

I am trying to create a static object written in Go to interface with a C program (say, a kernel …

c shared-libraries go dynamic-linking
Print rpath of an executable on macOS

I want to change the rpath of an executable using install_name_tool, but I can't figure out what the …

macos command-line terminal dynamic-linking darwin
Force GCC to notify about undefined references in shared libraries

I have a shared library that is linked with another (third-party) shared library. My shared library is then loaded using …

c++ shared-libraries dynamic-linking
C++ Visual Studio: linking using pragma comment

I came across a piece of code which uses #pragma comment(lib, "libraryname"). Why this type of usage as opposed …

c++ visual-studio-2010 static-linking dynamic-linking
Overriding 'malloc' using the LD_PRELOAD mechanism

I'm trying to write a simple shared library that would log malloc calls to stderr (a sort of 'mtrace' if …

c malloc dynamic-linking
CMake and order dependent linking of shared libraries

I have a few small components that I am building as shared libraries for my main application. Lets use an …

c++ cmake dynamic-linking
How to call a function from a shared library?

What is the easiest and safest way to call a function from a shared library / dll? I am mostly interested …

c++ linux dll shared-libraries dynamic-linking
How can LD_LIBRARY_PATH be changed within CMake?

I have a local shared library which is not in $LD_LIBRARY_PATH. I want to run my executable, but …

cmake shared-libraries dynamic-linking
C++ -fvisibility=hidden -fvisibility-inlines-hidden

I have a question about the C++ visibility attribute. I have read http://gcc.gnu.org/wiki/Visibility and yet …

c++ linux visibility gnu dynamic-linking
Linking two shared libraries with some of the same symbols

I link with two different shared libraries. Both libraries define some symbols that share a name but have different implementations. …

c unix gcc shared-libraries dynamic-linking