Boost C++ Libraries: Ticket #13003: boost build lacks <library>/boost//log, <library>/boost//log_setup https://svn.boost.org/trac10/ticket/13003 <p> If you create a Jamfile.jam file such as the following: </p> <pre class="wiki">import boost ; boost.use-project ; exe test : [ glob src/*.cpp ] : &lt;library&gt;/boost//system &lt;library&gt;/boost//thread &lt;library&gt;/boost//log &lt;library&gt;/boost//log_setup </pre><p> Boost build cannot find the library (presume I've configured Jamroot.jam to point to boost). </p> <p> I was able to fix this by going to the boost build's src/contrib/boost.jam file, jump to line 216 (within rule boost_std), and add the following two lines: </p> <pre class="wiki">boost_lib_std log : BOOST_LOG_DYN_LINK ; boost_lib_std log_setup : BOOST_LOG_SETUP_DYN_LINK ; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13003 Trac 1.4.3 Trey Van Riper <vanriper.trey@…> Tue, 02 May 2017 11:34:02 GMT <link>https://svn.boost.org/trac10/ticket/13003#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13003#comment:1</guid> <description> <p> Looks like I should have used BOOST_LOG_DYN_LINK instead of BOOST_LOG_SETUP_DYN_LINK, if I'm reading documentation correctly. It worked for me because I am statically linking, I assume. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Wed, 03 May 2017 07:48:14 GMT</pubDate> <title>owner, component changed; cc set https://svn.boost.org/trac10/ticket/13003#comment:2 https://svn.boost.org/trac10/ticket/13003#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">Andrey.Semashev@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Andrey Semashev</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">log</span> → <span class="trac-field-new">build</span> </li> </ul> <p> <code>tools/build/src/contrib/boost.jam</code> is part of Boost.Build, so I'm reassigning the ticket. I'm not sure what that file contains. </p> <p> <code>BOOST_LOG_DYN_LINK</code> and <code>BOOST_LOG_SETUP_DYN_LINK</code> control how Boost.Log (the two built libraries it consists of) is linked. If the macro is defined, the corresponding library is linked as a shared object (.so or .dll), otherwise as a static library. If you're linking statically, you should not define either of these macros. </p> Ticket anonymous Wed, 03 May 2017 21:50:54 GMT <link>https://svn.boost.org/trac10/ticket/13003#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13003#comment:3</guid> <description> <p> An interesting question comes to mind... how does a new boost library add its lib to this file? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Wed, 03 May 2017 22:14:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13003#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13003#comment:4</guid> <description> <p> BTW, I can see those <code>boost_lib_std</code> lines are already present in the file in lines 217-218 in 1.64, current master and develop. So maybe this ticket should be closed. </p> </description> <category>Ticket</category> </item> <item> <author>vanriper.trey@…</author> <pubDate>Sun, 21 May 2017 18:37:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13003#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13003#comment:5</guid> <description> <p> Hrm, perhaps I picked up a different branch or something. I've found other problems, so perhaps I need to pull again. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sun, 21 May 2017 18:42:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13003#comment:6 https://svn.boost.org/trac10/ticket/13003#comment:6 <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">worksforme</span> </li> </ul> <p> I'm closing the ticket as the requested lines are already present. </p> Ticket