Error binding Boost.Log to OS X El Capitan v10.11.3 and Xcode 7.2 Beta (LLVM 7.0.2, clang -700.1.81)

I am new to stack overflow and ask a question about Boost.log. I am very interested in using the Boost.log library, but I am unsuccessfully trying to get it to work. My setup is described in the "Title" section. Boost libraries were successfully installed via homebrew, so the "include" and "footer" folders can be found on the system, and each path to the specified folder is "included" in Xcode. I am trying to compile a very simple example:

namespace logging = boost::log;
namespace src = boost::log::sources;
namespace sinks = boost::log::sinks;
namespace keywords = boost::log::keywords;

int main(int argc, const char* argv[])
{
    logging::add_file_log( keywords::file_name = "sample_%N.log", keywords::rotation_size = 10 * 1024 * 1024, keywords::time_based_rotation = sinks::file::rotation_at_time_point(0, 0, 0), keywords::format = "[%TimeStamp%]: %Message%" );

    logging::core::get()->set_filter( logging::trivial::severity >= logging::trivial::debug );

    BOOST_LOG_TRIVIAL( trace ) << "A trace severity message";
    BOOST_LOG_TRIVIAL( debug ) << "A debug severity message";
    BOOST_LOG_TRIVIAL( info ) << "An informational severity message";
    BOOST_LOG_TRIVIAL( warning ) << "A warning severity message";
    BOOST_LOG_TRIVIAL( error ) << "An error severity message";
    BOOST_LOG_TRIVIAL( fatal ) << "A fatal severity message";*/

    return 0;
}

There are no errors when compiling, but when the application launches the following pop-up error message:

dyld: : __ZN5boost3log11v2_mt_posix15parse_formatterIcEENS1_15basic_formatterIT_EEPKS4_S7_ ://MMIN/Library/Developer/Xcode/DerivedData/SDL_OSX64_TLOM-hfqbehwlyjmogdapcmgoqggriedk/Build/Products/Debug/SDL_OSX64_TLOM :/usr/local/lib/libboost_log_setup.dylib  in/Users/MMIN/Library/Developer/Xcode/DerivedData/SDL_OSX64_TLOM-hfqbehwlyjmogdapcmgoqggriedk////SDL_OSX64_TLOM : 9

, , , gcc, homebrew clang, xcode.

- ?

+4

All Articles