Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8866 closed Bugs (invalid)

boost log 1.54 - simple logging example won't compile

Reported by: chisser98@… 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:2 by Andrey Semashev, 9 years ago

Resolution: invalid
Status: newclosed

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 anonymous, 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.

comment:4 by Andrey Semashev, 9 years ago

This may be of help with the linking problem.

Note: See TracTickets for help on using tickets.