dlopen/etc doesnt compile. Unresolved symbol
I am exploring the usage of dynamic stuff. So far My program (main.cpp) doesnt want to compile, becouse dlop开发者_运维百科en
&Co are "unresolved". I DID include dlcfn.h
.
I need the answer as soon as possible, becouse I have to go home in 30mins(doing rapidly other stuff also).
The correct error message might be "undefined", but this is not my computer.
You have link problem - link with -ldl
when linking you have to link in libdl using something like
gcc -o [my_target] [my_objects] -ldl
精彩评论