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

后端 未结 5 954
梦毁少年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:47

    boost log v2 is simply what you get by checking out trunk, according to what Andrey says in the post you link.

    indeed, it seems that this version too has got problems compiling against boost::filesystem v3.

    if this is also your case, one workaround is compiling after adding

    BOOST_FILESYSTEM_VERSION=2
    

    to the jamfile.

    if this does not work, then, check whether you are building a single threaded or multi-threaded version of the libraries. multi-threadred boost-log should be more tested (according to Andrey).

    hope this helps... I have not tried it...

    EDIT:

    where to add the ?

    I would add it to the requirements section of boost-log/libs/log/build/Jamfile.v2, shared subsection:

    project boost/log
        : source-location ../src
        : requirements
           shared:BOOST_LOG_DLL
           shared:BOOST_FILESYSTEM_VERSION=2
    

    EDIT: from Cookie's comment, BOOST_FILESYSTEM_VERSION=2 should be specified as

           msvc:BOOST_FILESYSTEM_VERSION=2
    

    not in shared.

提交回复
热议问题