开发者

dlopen/etc doesnt compile. Unresolved symbol

开发者 https://www.devze.com 2023-01-08 18:34 出处:网络
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 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

精彩评论

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