Top "Undefined-reference" questions

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

Undefined reference to 'dlsym' and 'dlopen'

I am compiling using arm-linux-gnueabi-g++ version 4.7.3. I have the arm-linux-gnueabi libraries installed at location: /usr/arm-linux-gnueabi/lib, it contains libdl.…

c++ linux arm shared-libraries undefined-reference
undefined reference when using extern

I have the following setup (hopefully this is not too bare an example): A.h typedef std::map<unsigned …

c++ extern undefined-reference
"undefined reference to" in G++ Cpp

Can't seem to get the errors to go away. Errors are below. I have looked on google and still can't …

c++ g++ undefined-reference
Pcap functions have "undefined reference"

I'm trying to go through this tutorial: http://www.tcpdump.org/pcap.html Now I have install pcap (code hints …

c linux pcap undefined-reference libpcap
Use libcurl undefined reference to 'curl_easy_init'

use libcurl to writer some test code. when try to compile, it says undefined reference. already use -lcurl or -L …

c linux gcc libcurl undefined-reference
glfw3 compiling undefined references

I have a problem with compiling my program which uses glfw3 library. I'm getting list of errors of undefined references …

c++ opengl gcc undefined-reference glfw
undefined reference to `gzopen` error

My C program uses some zlib functions (like gzopen, gzread). I have included the zlib.h header file in my …

c compilation hyperlink zlib undefined-reference
C code compiled with C++: undefined reference

I have a small program that I can compile with GCC and ICC without any difficulties, but I would also …

c++ c include undefined-reference
Linking libavcodec and libavformat: Undefined references

I am trying to compile a project I am working on that uses ffmpeg libraries. The project is written in …

c gcc ffmpeg undefined-reference
Another "undefined reference" error when linking boost libraries

I've seen several other posts that deal with this exact same issue. However, none of their solutions seem to work …

c++ boost undefined-reference