开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜