Top "Linker" questions

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

combine two GCC compiled .o object files into a third .o file

How does one combine two GCC compiled .o object files into a third .o file? $ gcc -c a.c -o …

gcc compiler-construction linker ld object-files
Easy check for unresolved symbols in shared libraries?

I am writing a fairly large C++ shared-object library, and have run into a small issue that makes debugging a …

c++ linker shared-libraries
library is linked but reference is undefined

I'm trying to compile an openCL program on Ubuntu with an NVIDIA card that worked once before, #include <CL/…

c++ ubuntu linker opencl
When to use the Visual Studio Additional dependencies?

In C++, you got the header files (.h), the (.lib) files and the (.dll) files. In Visual Studio, you provide …

c++ visual-studio linker
What's the difference between -rpath and -L?

gcc and ld provide many ways to specify a search path for libraries—among them the -rpath and -L flags. …

gcc linker shared-libraries ld
How to open a .a file

I've a little problem: I have to open a linker file that has .a extension. I use Dev-C++.

c++ file linker .a
Multiple definition of first defined here gcc

I have these files consumer.cpp consumer.hpp defines.hpp main.cpp makefile producer.cpp producer.hpp here's the file …

c++ gcc linker include multiple-definition-error
Compile with older libc (version `GLIBC_2.14' not found)

I have to compile a program on a current ubuntu (12.04). This program should then run on a cluster using CentOS …

gcc linker shared-libraries
Replacing ld with gold - any experience?

Has anyone tried to use gold instead of ld? gold promises to be much faster than ld, so it may …

c++ c linker migration gold-linker
What are the --start-group and --end-group command line options?

What is the purpose of those command line options? Please help to decipher the meaning of the following command line: …

gcc linker ld