#8866 closed Bugs (invalid)
boost log 1.54 - simple logging example won't compile
Reported by: | Owned by: | Andrey Semashev | |
---|---|---|---|
Milestone: | To Be Determined | Component: | log |
Version: | Boost 1.54.0 | Severity: | Showstopper |
Keywords: | log | Cc: |
Description
I compiled Boost 1.54 on my Debian 7 64 bit Linux box and installed it successfully.
However, when trying to use it in my project I'm getting a huge bunch of errors (Full dump is here: http://pastebin.com/zUTcb7vp).
I was previously using boost 1.52 with the svn head of boost-log (which worked fine).
I tried creating a simple test app, which is below:
#include <boost/log/trivial.hpp> #include <boost/log/utility/init/to_file.hpp> int main(int, char*[]) { BOOST_LOG_TRIVIAL(trace) << " a trace message "; }
This fails to compile (full stacktrace here: http://pastebin.com/xiXZZVYb).
I removed the
#include <boost/log/utility/init/to_file.hpp>
line, but it still fails to compile.
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
You seem to have a mixture of different Boost.Log versions in /usr/local/include/boost/log/. There is no boost/log/detail/prologue.hpp file in the current Boost.Log. I suspect you have not removed your old Boost and Boost.Log versions from /usr/local before installing the new versions. Clean your installation, then build and install Boost (including Boost.Log) anew.
comment:3 by , 9 years ago
Ah nuts, you're right. I removed all of the old include/lib stuff, and reinstalled. It now compiles (however, it won't link - but I'll talk to the mailing list about that).
Thanks Andysem.
I asked about this on StackOverflow, but no luck so far: http://stackoverflow.com/questions/17622244/boost-log-error-when-used-in-a-project