Top "Ld" questions

The ld (linker or loader) program combines object files, archive files and (references from) shared libraries, relocates their data and addresses together with symbol references.

Compiling problems: cannot find crt1.o

I have a virtual Debian system which I use to develop. Today I wanted to try llvm/clang. After installing …

gcc clang ld
I don't understand -Wl,-rpath -Wl,

For convenience I added the relevant manpages below. My (mis)understanding first: If I need to separate options with ,, that …

gcc ld rpath
LD_LIBRARY_PATH vs LIBRARY_PATH

I'm building a simple C++ program and I want to temporarily substitute a system supplied shared library with a more …

gcc g++ ld
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
ld cannot find -l<library>

I am having trouble installing pyipopt on ubuntu 12.04. During linking, I receive the error: /usr/bin/ld: cannot find -lcoinhsl …

gcc ubuntu linker shared-libraries ld
What's the difference between .so, .la and .a library files?

I know an .so file is a kind of dynamic library (lots of threads can share such libraries so there …

linux memory-management static-libraries ld shared-libraries
How to remove unused C/C++ symbols with GCC and ld?

I need to optimize the size of my executable severely (ARM development) and I noticed that in my current build …

c++ c gcc ld strip
Why do I have to define LD_LIBRARY_PATH with an export every time I run my application?

I have some code that uses some shared libraries (c code on gcc). When compiling I have to explicitly define …

c linux gcc shared-libraries ld
How to set the LDFLAGS in CMakeLists.txt?

I set the CFLAGS in CMake by CMAKE_C_FLAGS. Is something like this to set LDFLAGS?

gcc makefile cmake ld ldflags
"/usr/bin/ld: cannot find library"

This is my first time trying to compile FORTRAN code using a makefile. The OS is Ubuntu 12.04 LTS 64 bit. I …

gcc linker fortran ld gfortran