Boost c++ library install

前端 未结 4 1231
谎友^
谎友^ 2020-12-30 00:01

I am not familiar with the usual build technique in linux I am using boost c++ library. Can any body guide me in installing and configuring boost c++ library. Thanks in adva

相关标签:
4条回答
  • 2020-12-30 00:25

    depending on the Linux distribution you are using, you'll probably find boost is already built and packaged for you, e.g. on Fedora "yum install boost"

    0 讨论(0)
  • 2020-12-30 00:26

    Rob Kennedy's answer is still valid except that is recommended now to install with ./b2 instead of ./bjam.

    0 讨论(0)
  • 2020-12-30 00:36

    My environment is Linux Fedora 15. On it, one can easily install boost by typing,

    $ yum install boost-devel
    

    After installation, you'll find boost under /usr/include/boost/.

    However, if you run,

    $yum install boost
    

    you'll only find .so of boost under /usr/lib/, like /usr/lib/libboost_timer.so.1.48.0.

    0 讨论(0)
  • 2020-12-30 00:36

    It's OK if you're not familiar with the usual build technique because Boost doesn't use the usual build technique. Follow the instructions in the "getting started" documentation. Make sure you read all the way to the bottom of the page. The link to the Unix-specific instructions is at the very, very bottom.

    For most parts of Boost, installation is synonymous with unpacking the tarball into your preferred include directory. Other parts of Boost require compilation, so go to the Boost installation directory, run ./bootstrap.sh, and then run ./bjam install.

    0 讨论(0)
提交回复
热议问题