Boost C++ Libraries: Ticket #10063: Option should exist to include ublas entirely from headers without linking to serialization https://svn.boost.org/trac10/ticket/10063 <p> If you include certain ublas files which you wish to include as headers only without linking to prebuilt libs, you get link errors wanting to link to prebuild serialization library. </p> <p> This problem occurred for example when I included the following in my application: </p> <pre class="wiki">#include &lt;boost/numeric/ublas/fwd.hpp&gt; #include &lt;boost/numeric/ublas/vector.hpp&gt; #include &lt;boost/numeric/ublas/vector_sparse.hpp&gt; #include &lt;boost/numeric/ublas/matrix.hpp&gt; #include &lt;boost/numeric/ublas/matrix_sparse.hpp&gt; #include &lt;boost/numeric/ublas/storage_sparse.hpp&gt; #include &lt;boost/numeric/ublas/banded.hpp&gt; #include &lt;boost/numeric/ublas/triangular.hpp&gt; #include &lt;boost/numeric/ublas/blas.hpp&gt; #include &lt;boost/numeric/ublas/lu.hpp&gt; </pre><p> The attached patch introduces an option BOOST_UBLAS_DISABLE_SERIALIZATION which (if defined using a #define) excludes the serialization code. </p> <p> The serialization code is unwanted on my platform for ublas objects, as the platform is obscure and difficult to build the serialization library for it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10063 Trac 1.4.3 Andrew Medlin <andrew@…> Wed, 21 May 2014 05:41:08 GMT attachment set https://svn.boost.org/trac10/ticket/10063 https://svn.boost.org/trac10/ticket/10063 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_ublas_msvc8.patch</span> </li> </ul> <p> Patch to optionally exclude serialization from certain ublas classes. Also includes fix for "new" being defined in msvc 8 when including type_traits/has_new_operator.hpp </p> Ticket