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.

The proper way of forcing a 32-bit compile using CMake

Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, …

c++ gcc cmake 32bit-64bit ld
Very strange linker behavior

This is strange because I was able to get the error below to go away by removing the reference to …

gcc linker ld
Architecture of i386 input file is incompatible with i386:x86-64

I'm trying to create a simple kernel using Ubuntu. In the terminal I typed ld -Ttext 0x1000 -o kernel.bin …

linux ld i386
gcc - /usr/bin/ld error: cannot find <library> in /usr/local/lib though ldconfig list it, and path added to ld.so.conf

I try to compile a C++ code, using a library I've also compiled manually and installed in /usr/local/lib …

c++ linux gcc ld
GCC how to add before the default linker search path by default? LIBRARY_PATH not working

I'm trying to figure out how to set some environment variable which would make g++ to link to correct versions …

gcc linker g++ ld
error while loading shared libraries: libboost_system.so.1.45.0: cannot open shared object file: No such file or directory

I am building a C++ executable on Linux. The executable links into some boost libraries. This is the output when …

c++ linux ubuntu ld ldd
What is the difference between -I and -L in makefile?

What is the usage of the -I and -L flags in a makefile?

linux makefile linker ld
Xcode: ld: library not found for -lAFNetworking

Because of this one reason, build always fails...Any ideas about what I could try? EDIT: the solution is to …

xcode clang afnetworking cocoapods ld
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
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