Top "Undefined-reference" questions

A linker error caused by a missing definition of a symbol used elsewhere in a program

Undefined reference C++

I'm trying to compile my first legit program that I'm converting from Java (I ran a test hello world type …

c++ undefined-reference
How to resolve __gcov_init undefined reference issue when linking

I now work on C code coverage study and encountered following issue, GCC version 4.4.6: Added compiler flag CFLAGS = --coverage and …

linker undefined-reference gcov
OpenCV - undefined reference: SurfFeatureDetector and BruteForceMatcher

I'm making a program in C++ that uses 2 images to detect SURF Features, compute the matches with a bruteforcematcher and …

c++ opencv linker undefined-reference surf
Undefined symbols "vtable for ..." and "typeinfo for..."?

Nearly the final step but still some strange erros.... bash-3.2$ make g++ -Wall -c -g Myworld.cc g++ -Wall -g …

c++ linker-errors undefined-reference vtable pure-virtual
Qt: Signals and slots Error: undefined reference to `vtable for

Following example from this link: http://developer.kde.org/documentation/books/kde-2.0-development/ch03lev1sec3.html #include <QObject&…

qt signals-slots vtable undefined-reference
undefined reference to `__gxx_personality_sj0`

With gcc 4.6 when trying to execute this code: #include <iostream> using namespace std; #include <bitset> int …

c++ gcc linker-errors undefined-reference
Compiling with Clang using Libc++ undefined references

The first couple are too long to reference. I get this error when I try to compile clang++ -stdlib=libc++ ../…

c++ clang std undefined-reference libc++
Undefined reference to printf when using GCC cross compiler

I'm trying to get the following simple 'Hello World' program to compile using a cross compiler (GCC 4.9.2) targeting mips: #include &…

c gcc mips cross-compiling undefined-reference
"undefined reference" to Virtual Base class destructor

Possible Duplicate: What is an undefined reference/unresolved external symbol error and how do I fix it? I have some …

c++ abstract-class undefined-reference
linking pthread library issue

Am facing a problem that may be slightly complicated to explain and understand as giving the entire picture would be …

c linux makefile pthreads undefined-reference