Boost C++ Libraries: Ticket #8866: boost log 1.54 - simple logging example won't compile https://svn.boost.org/trac10/ticket/8866 <p> I compiled Boost 1.54 on my Debian 7 64 bit Linux box and installed it successfully. </p> <p> However, when trying to use it in my project I'm getting a huge bunch of errors (Full dump is here: <a class="ext-link" href="http://pastebin.com/zUTcb7vp"><span class="icon">​</span>http://pastebin.com/zUTcb7vp</a>). </p> <p> I was previously using boost 1.52 with the svn head of boost-log (which worked fine). </p> <p> I tried creating a simple test app, which is below: </p> <pre class="wiki">#include &lt;boost/log/trivial.hpp&gt; #include &lt;boost/log/utility/init/to_file.hpp&gt; int main(int, char*[]) { BOOST_LOG_TRIVIAL(trace) &lt;&lt; " a trace message "; } </pre><p> This fails to compile (full stacktrace here: <a class="ext-link" href="http://pastebin.com/xiXZZVYb"><span class="icon">​</span>http://pastebin.com/xiXZZVYb</a>). </p> <p> I removed the </p> <pre class="wiki">#include &lt;boost/log/utility/init/to_file.hpp&gt; </pre><p> line, but it still fails to compile. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8866 Trac 1.4.3 chisser98@… Sun, 21 Jul 2013 02:59:41 GMT <link>https://svn.boost.org/trac10/ticket/8866#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8866#comment:1</guid> <description> <p> I asked about this on <a class="missing wiki">StackOverflow</a>, but no luck so far: <a class="ext-link" href="http://stackoverflow.com/questions/17622244/boost-log-error-when-used-in-a-project"><span class="icon">​</span>http://stackoverflow.com/questions/17622244/boost-log-error-when-used-in-a-project</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sun, 21 Jul 2013 06:17:53 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8866#comment:2 https://svn.boost.org/trac10/ticket/8866#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> 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. </p> Ticket anonymous Sun, 21 Jul 2013 13:43:57 GMT <link>https://svn.boost.org/trac10/ticket/8866#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8866#comment:3</guid> <description> <p> 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). </p> <p> Thanks Andysem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sun, 21 Jul 2013 15:06:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8866#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8866#comment:4</guid> <description> <p> <a href="http://www.boost.org/doc/libs/1_54_0/libs/log/doc/html/log/rationale/namespace_mangling.html">This</a> may be of help with the linking problem. </p> </description> <category>Ticket</category> </item> </channel> </rss>