Top "Linker-errors" questions

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

What is an undefined reference/unresolved external symbol error and how do I fix it?

What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them? Feel free …

c++ linker-errors undefined-reference c++-faq unresolved-external
C error: undefined reference to function, but it IS defined

Just a simple program, but I keep getting this compiler error. I'm using MinGW for the compiler. Here's the header …

c function linker-errors undefined-reference
Why am I getting "undefined reference to sqrt" error even though I include math.h header?

I'm very new to C and I have this code: #include <stdio.h> #include <math.h> …

c linker linker-errors libm
Undefined reference to `sin`

I have the following code (stripped down to the bare basics for this question): #include<stdio.h> #include&…

c math linker-errors undefined-reference
Linker error: "linker input file unused because linking not done", undefined reference to a function in that file

I'm having trouble with the linking of my files. Basically, my program consists of: The main program, gen1. gen1 - …

c++ c gcc makefile linker-errors
What causes the error "undefined reference to (some function)"?

I get the error: main.o(.text+0x1ed): In function `main': : undefined reference to `avergecolumns' collect2: ld returned 1 exit …

c linker-errors
Multiple definition of ... linker error

I defined a special file: config.h My project also has files: t.c, t.h pp.c, pp.h …

c linker linker-errors
Undefined reference to 'vtable for xxx'

takeaway.o: In function `takeaway': project:145: undefined reference to `vtable for takeaway' project:145: undefined reference to `vtable for takeaway' takeaway.…

c++ linker linker-errors vtable
Trying to include a library, but keep getting 'undefined reference to' messages

I am attempting to use the libtommath library. I'm using the NetBeans IDE for my project on Ubuntu linux. I …

ubuntu build compiler-errors static-libraries linker-errors
Undefined reference to sqrt (or other mathematical functions)

I have this simple code: max = (int) sqrt (number); and in the header I have: #include <math.h> …

c linker-errors undefined-reference