Boost C++ Libraries: Ticket #13171: Linker error when using boost::process::posix::use_vfork https://svn.boost.org/trac10/ticket/13171 <p> Trying to build the following code using GCC 7.1.1 and Boost 1.64.0 fails: </p> <pre class="wiki">#include &lt;boost/process.hpp&gt; namespace bp = boost::process; int main(void) { bp::child c("ls", bp::posix::use_vfork); c.wait(); return 0; } </pre><p> The following linker error is generated: </p> <pre class="wiki">In function 'boost::process::detail::posix::executor &gt;, boost::fusion::filter_view&amp;, boost::process::detail::posix::use_vfork_ const&amp;&gt; const, boost::process::detail::is_initializer &gt; &gt; &gt; &gt;::operator()()': spawn_simple.cpp:(.text._ZN5boost7process6detail5posix8executorINS_6fusion10joint_viewINS4_5tupleIJNS2_12exe_cmd_initIcEEEEENS4_11filter_viewIKNS6_IJRA6_KcRNS2_8null_outILi1ELin1EEERKNS2_10use_vfork_EEEENS1_14is_initializerIN4mpl_3argILin1EEEEEEEEEEclEv[_ZN5boost7process6detail5posix8executorINS_6fusion10joint_viewINS4_5tupleIJNS2_12exe_cmd_initIcEEEEENS4_11filter_viewIKNS6_IJRA6_KcRNS2_8null_outILi1ELin1EEERKNS2_10use_vfork_EEEENS1_14is_initializerIN4mpl_3argILin1EEEEEEEEEEclEv]+0x31): undefined reference to `boost::process::detail::posix::executor &gt;, boost::fusion::filter_view&amp;, boost::process::detail::posix::use_vfork_ const&amp;&gt; const, boost::process::detail::is_initializer &gt; &gt; &gt; &gt;::invoke(mpl_::bool_, mpl_::bool_)' </pre><p> Given that Boost Process is a header-only library, why is the linker complaining about unresolved symbols in <code>boost::process::...::invoke()</code>? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13171 Trac 1.4.3 Ton van den Heuvel <tonvandenheuvel@…> Wed, 23 Aug 2017 11:55:19 GMT <link>https://svn.boost.org/trac10/ticket/13171#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13171#comment:1</guid> <description> <p> This can be resolved; vfork support was not enabled due to an incorrect #ifdef. See: <a class="ext-link" href="https://github.com/klemens-morgenstern/boost-process/issues/118"><span class="icon">​</span>https://github.com/klemens-morgenstern/boost-process/issues/118</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>