Top "Undefined-reference" questions

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

C++ templates, undefined reference

I have a function declared like so: template <typename T> T read(); and defined like so: template <…

c++ templates g++ undefined-reference
Undefined reference to mempcy@GLIBC_2.14 when compiling on Linux

I am trying to port an application to drive a device that uses an ftdi2332h chip from windows to …

c++ porting undefined-reference ftdi
Undefined reference to `initscr' Ncurses

I'm trying to compile my project and I use the lib ncurse. And I've got some errors when compiler links …

c compilation linker ncurses undefined-reference
gcc undefined reference to

I'm running.. gcc -c -I/usr/vt/sample ttssample.c gcc -L. -lttsapi ttssample.o -o ttsample and I'm getting …

gcc undefined-reference
getting error in c program "undefined reference to gettid"

This is my thread sub routine... Here, I am creating 4 threads and passing structure as a argument to thread sub …

c undefined-reference
Undefined reference to 'inflateInit2_'

I'm using Code Blocks IDE and I want to install Tiled Map Editor for SFML. So, I downloaded the source …

c++ windows gcc zlib undefined-reference
g++ compile error: undefined reference to a shared library function which exists

I recently installed the hdf5 library on an ubuntu machine, and am now having trouble linking to the exported functions. …

g++ shared-libraries ld hdf5 undefined-reference
Undefined reference to 'yylex()'

I'm trying to use flex and bison to create a simple scripting language. Right now, I'm just trying to get …

g++ bison lex undefined-reference flex-lexer
undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5

I'm trying to make a file in Ubuntu and when i make i keep getting this error: /usr/bin/ld: ../../…

linux linker-errors undefined-reference
gcc wont compile and run MySQL C libraries

#include <my_global.h> #include <mysql.h> int main(int argc, char **argv) { printf("MySQL client …

c gcc undefined-reference mysql