What is boost log, how to get it and how to build it

后端 未结 5 926
梦毁少年i
梦毁少年i 2020-12-24 02:10

So I heard good things about boost log. This claims its existence:

http://boost-log.sourceforge.net/libs/log/doc/html/index.html

This is the tutorial:

5条回答
  •  轮回少年
    2020-12-24 02:34

    After lots of searching and testing this what I found out.

    • Download desired Boost (I tested it on stable release 1.51)

    • Checkout boost-log from here and copy /boost/log and /libs/log to /boost/log and /libs

    • Make sure you have a supported compiler (my problem was that!. It worked with gcc 4.1.7)

    • Run

      ./bootstrap.sh --with-libraries=all --prefix=
      

      and

      ./b2 address-model=32
      

    If everything goes according to plan, a directory /stage/libs will be created with the compiled libraries (including libboost_log.so)

    Notes:

    • I'm not sure why but prefix didn't work. I was expecting to see the libraries built there.

    • Use b2 not bjam.

    • No need to alter Jamfile in .

    • I got a bunch of warnings but no when building log.

    I hope it helps somebody.

提交回复
热议问题