Top "Linker" questions

The linker is part of the toolchain for producing executables from source code written in compiled programming languages.

shared global variables in C

How can I create global variables that are shared in C? If I put it in a header file, then …

c variables linker global-variables scope
How to add include and lib paths to configure/make cycle?

I need a place to install libraries in a linux box I have no su access to. I'm using ~/local[/…

bash makefile linker configure autoconf
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
g++ undefined reference to typeinfo

I just ran across the following error (and found the solution online, but it's not present in Stack Overflow): (.gnu.…

c++ linker g++
Why does the order in which libraries are linked sometimes cause errors in GCC?

Why does the order in which libraries are linked sometimes cause errors in GCC?

gcc linker
Resolving LNK4098: defaultlib 'MSVCRT' conflicts with

This warning: LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library is a fairly common …

visual-studio dll linker warnings msvcrt
How to print the ld(linker) search path

What is the way to print the search paths that in looked by ld in the order it searches.

linux gcc linker ld
Difference between shared objects (.so), static libraries (.a), and DLL's (.so)?

I have been involved in some debate with respect to libraries in Linux, and would like to confirm some things. …

c++ c linux dll linker
"/usr/bin/ld: cannot find -lz"

I am trying to compile Android source code under Ubuntu 10.04. I get an error saying, /usr/bin/ld: cannot find …

linux gcc linker
static linking only some libraries

How can I statically link only a some specific libraries to my binary when linking with GCC? gcc ... -static ... tries …

gcc linker static-libraries