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.

Building for MacOSX, but linking against dylib built for iOS Simulator file

I've just upgraded to Xcode 5 beta with the April 15 2013 commandline tools and hit the following warning when running a cmake …

c cmake clang ld
linker error "relocation R_X86_64_PC32 against undefined symbol" despite compilation with -fPIC

I'm compiling a c++ program using the command line g++ -c prog.cc -std=c++11 -march=native -fPIC -fopenmp and …

c++ gcc linker-errors ld fpic
GNU LD: How to override a symbol value (an address) defined by the linker script specified using -T

My usecase is as follows: I am using a typical SDK that comes with Makefile based projects I belive the …

gcc ld linker-scripts
Is g++ both a c++ compiler and a linker?

I was looking at the output from my build in Eclipse. I'm cross compiling for a ColdFire processor. The compilation …

c++ gcc g++ gnu ld
glui /usr/bin/ld: cannot find -lXmu

I have downloaded the latest GLUI source code and now I am trying to compile it. When I do so, …

linux ubuntu makefile linker ld
How to link a C object file with a Assembly Language object file?

I am having trouble linking 2 object files one of which was generated from an Assembly Language Source File and another …

c linux assembly ld gnu-assembler
gcc gives error while using fmod()

Sample code for fmod: #include <stdio.h> #include <math.h> int main(void) { double x = 0.14527, y = 3.14159; …

c gcc ld modulo libm
dlopen from memory?

I'm looking for a way to load generated object code directly from memory. I understand that if I write it …

c dynamic-linking ld dlopen
/usr/bin/ld: warning: abc.so, needed by xyz.so not found (try using -rpath or -rpath-link)"

I am building a C++ application, using Netbeans 6.9 as my IDE. I have a C++ library which is a wrapper …

c++ c gcc ld
How to add directories to ld search path for a cross-compilation to ARM?

I am trying to configure util-linux to cross compile using arm-none-linux-gnueabi from CodeSourcery. My only problem so far is that …

path linker cross-compiling ld codesourcery