mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-23 01:35:08 +01:00
b99a82ddfe
- Output detected version of boost in dot-form (e.g., 1.56.0, instead of 1_56) - Fix Boost.Log library detection: * when linking to shared library, BOOST_LOG_DYN_LINK needs to be defined * when linking to non-multithreaded version, BOOST_LOG_NO_THREADS needs to be defined (see http://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/installation/config.html)
12 lines
445 B
C++
12 lines
445 B
C++
#include <boost/log/trivial.hpp>
|
|
|
|
int main(int, char*[])
|
|
{
|
|
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";
|
|
}
|