Top "Undefined-reference" questions

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

Undefined reference to log10 function

I am building using Eclipse Kepler, and have included math.h. However, I am getting an error 'undefined reference to …

c undefined-reference
with -lpthread, g++ compiler error, "undefined reference to " semaphore calls such as `sem_open'

I am new to posix thread library, and I tried to compile a sample code from a tutorial with: g++ …

c++ linux multithreading system-calls undefined-reference
Undefined reference to memcpy_s

I'm trying to fix an undefined reference to memcpy_s() error. I've included string.h in my file and the …

c memcpy undefined-reference c11 tr24731
Undefined reference to `typeinfo for class' and undefined reference to `vtable for class'

I'm dealing with inheritance in C++. I wanted to write a program for addition and subtraction of two arrays. Heres …

c++ undefined-reference vtable
Undefined reference - despite lib being found by linker

I have a trivial program to test for availability of python development files: #include<Python.h> int main(){…

linker undefined-reference
compiling openGL + GLSL gives undefined reference

i am trying to compile this one piece of code from internet and i am failing miserably. seems like opengl …

opengl linker makefile undefined-reference
Undefined Reference to a function

I'm using Linux and I have the following files: main.c, main.h fileA.c, fileA.h fileB.cpp, fileB.…

c++ c linux undefined-reference
C++: Undefined reference to instance in Singleton class

I'm currently trying to implement a factory as a singleton. I practically used the textbook example of the Singleton pattern. …

c++ static singleton linker undefined-reference
C++ class template undefined reference to function

I keep getting undefined reference when i call the two functions from my template class "add" and "greater" in my …

c++ c class undefined-reference template-classes
Why is curses on linux giving me following error?

Trying to get getch() working to capture key press. #include <curses.h> ... ... WINDOW *w; char f; w = initscr(); …

c linker curses undefined-reference