开发者

Static Library Loading

I have created a program using a number of statically linked libraries. My question is, are these libraries required to be present when running the executable? It seems that the libraries are accessed as the program will not run if the libraries are not present and their path not included in the LIBPATH environment variab开发者_如何学Gole. I had the impression that since they were statically linked they would not be required at runtime.


No, static linking means they are included in the binary you build (and so they are "loaded" when you compile and link, if you will).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜