Trying to statically link Boost

后端 未结 3 1935
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 08:22

I am working in Linux, Eclipse CDT, g++, with Boost library. Having existing program which uses Boost thread, I try to link it statically instead of dynamically. /usr/local/lib

3条回答
  •  梦毁少年i
    2021-02-04 08:43

    On Linux a dynamic library may automatically depend on other dynamic libraries so that when you link it, you get the other libraries for free. When linking statically, there is no such system and you have to specify the other libraries manually.

提交回复
热议问题