开发者

Why should I need libprofiler.so.0

开发者 https://www.devze.com 2023-04-03 18:10 出处:网络
I am using google prof tools, and link my app with -lprofiler, but when I run this program: error while loading shared libraries: libprofile开发者_高级运维r.so.0: cannot open shared object file: No su

I am using google prof tools, and link my app with -lprofiler, but when I run this program: error while loading shared libraries: libprofile开发者_高级运维r.so.0: cannot open shared object file: No such file or directory

on the contrary, I link with -ltcmalloc then I do not need a tcmalloc.so at runtime.

I have already link the static lib for profiler, why should I need it at runtime?


The static library just contains stubs for calling actual functions from the shared object dynamically. So you will need the .so as well. The static library makes your life easier, so that you don't have to write GetProcAddress() or whatever it is on your system.

0

精彩评论

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

关注公众号