You need to specify the libraries after the code that reference them. So the correct method is:
gcc -o dltest dltest.o -ldl
The command line above would work anyways prior to oneiric, but from oneiric onward the linker is more strict. See http://wiki.debian.org/ToolChain/DSOLinking
Marking as invalid.
You need to specify the libraries after the code that reference them. So the correct method is:
gcc -o dltest dltest.o -ldl
The command line above would work anyways prior to oneiric, but from oneiric onward the linker is more strict. See http:// wiki.debian. org/ToolChain/ DSOLinking
Marking as invalid.