Top "Linker-errors" questions

An error received when combining individually compiled object files into executable code.

Undefined symbol error for base class in C++ shared library

I compiled the following code as a shared library using g++ -shared ...: class Foo { public: Foo() {} virtual ~Foo() = 0; virtual int …

c++ compilation linker-errors shared-libraries undefined-symbol
GreenHills - small data area overflow

I'm hoping maybe someone has a quick answer for this but essentially when I turn on optimizations, I get the …

embedded real-time linker-errors integrity greenhills
Linker error with libpng under MacOSX

I'm working on MacOSX 10.7.2 and Xcode 4.2.1. I installed libpng using port and I was trying to load a PNG image …

xcode macos linker-errors libpng
APPLE MACH-O LINKED ERROR After adding AFNetworking

Just adding AFNetworking into my project, and after B&R here i got this error like: Undefined symbols for …

ios afnetworking linker-errors mach-o
Old Fortran Program: ld returned 1 exit status

I have an old FORTRAN 77 program that I am having trouble compiling / building as normal with: gfortran -Wall -o "filename" …

linux linker-errors ld gfortran fortran77
C++ : Extern C Functions inside a Namespace

I have to link two libraries, say A and B. Some of the files are common in both libraries. So, …

c++ namespaces linker-errors extern
Linker error when unit testing: ld: illegal text-relocation to cstring in ... from _av_image_check_size in .../libavutil.a(imgutils.o)

In Xcode 4.3.2, building an iPad app, which includes libavutil.a from the ffmpeg distribution, it builds and runs correctly but …

ios unit-testing xcode4.3 linker-errors libav
LNK2001 and LNK2019 errors - DirectX unresolved external symbols

I am following along with the book "Introduction to 3D Game Programming with DirectX11" by Frank D. Luna. And I …

c++ directx linker-errors lnk2019 lnk2001
Linking googleTest in VS2010 results in LNK2005 because of other dependent libraries

I have a large and complicated project that is finally getting unit tests. I've built googleTest 1.6.0 locally with Visual Studio 2010, …

visual-studio-2010 linker-errors googletest lnk2005