configure error: Could not link against boost_system

前端 未结 10 1578
星月不相逢
星月不相逢 2021-02-05 05:52

I\'m trying to install a package (soccer simulator 2d) on Debian. When I go to the directory and run ./configure, I get the following:

reza@debian:~         


        
10条回答
  •  一整个雨季
    2021-02-05 06:11

    No expert here, but my $.02:

    First, Boost is only mostly a headers-only library. For some libraries, you do have to build, and add to your lib path; boost_system is one of those libs.

    Second, it's easy to overlook the fact that you can build the Boost libs as static libs, or as shared libs, and if you've built one and are trying to link against the other, that might account for your problem.

    ./b2 runtime-link=shared will create shared; ./b2 runtime-link=static will build static libs.

    Hope this helps :)

提交回复
热议问题