You have to link against libdl, add
-ldl
to your linker options
More Related Contents:
- How to enable C++11/C++0x support in Eclipse CDT?
- Sleep for milliseconds
- C/C++ with GCC: Statically add resource files to executable/library
- How can I get the IP address of a (Linux) machine?
- Debugging core files generated on a Customer’s box
- How do I output coloured text to a Linux terminal?
- Finding current executable’s path without /proc/self/exe
- Call a C function from C++ code
- How to solve “Unresolved inclusion: ” in a C++ file in Eclipse CDT?
- DSO missing from command line [duplicate]
- Why does this delay-loop start to run faster after several iterations with no sleep?
- Waitpid equivalent with timeout?
- How to get total cpu usage in Linux using C++
- When including header files, is the path case sensitive?
- What is the difference between MinGW, MinGW-w64 and MinGW-builds?
- std::thread is not a member of namespace std using Eclipse Kepler MinGW
- Detect Windows or Linux in C, C++ [duplicate]
- Getting the machine serial number and CPU ID using C/C++ in Linux
- C++11 full support on Eclipse [closed]
- What are good practices regarding shared libraries on Linux?
- How do I find the current system timezone?
- High delay in RS232 communication on a PXA270
- C++11: How to alias a function? [duplicate]
- How to make reading from `std::cin` timeout after a particular amount of time
- How to detect IP address change programmatically in Linux?
- What is Linux’s native GUI API?
- Install gcc on linux with no root privilege
- Large 2D array gives segmentation fault
- _GLIBCXX_USE_CXX11_ABI, GCC 4.8 and ABI compatibility
- On OS X, simple C++ program gives incorrect results (which are a result of command-line options ‘c++03’ vs ‘c++11’)