Boost C++ Libraries: Ticket #12982: Missing <serialization/array_wrapper.hpp> header in uBLAS files? https://svn.boost.org/trac10/ticket/12982 <p> When building code using the boost library I received two error messages saying </p> <div class="wiki-code"><div class="code"><pre><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">include</span><span class="o">/</span><span class="n">boost</span><span class="o">/</span><span class="n">numeric</span><span class="o">/</span><span class="n">ublas</span><span class="o">/</span><span class="n">storage</span><span class="o">.</span><span class="n">hpp</span><span class="p">:</span><span class="mi">301</span><span class="p">:</span><span class="mi">33</span><span class="p">:</span> <span class="n">error</span><span class="p">:</span> <span class="n">no</span> <span class="n">member</span> <span class="n">named</span> <span class="s1">&#39;make_array&#39;</span> <span class="ow">in</span> <span class="n">namespace</span> <span class="s1">&#39;boost::serialization&#39;</span> </pre></div></div><p> and </p> <div class="wiki-code"><div class="code"><pre><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">include</span><span class="o">/</span><span class="n">boost</span><span class="o">/</span><span class="n">numeric</span><span class="o">/</span><span class="n">ublas</span><span class="o">/</span><span class="n">matrix</span><span class="o">.</span><span class="n">hpp</span><span class="p">:</span><span class="mi">5979</span><span class="p">:</span><span class="mi">33</span><span class="p">:</span> <span class="n">error</span><span class="p">:</span> <span class="n">no</span> <span class="n">member</span> <span class="n">named</span> <span class="s1">&#39;make_array&#39;</span> <span class="ow">in</span> <span class="n">namespace</span> <span class="s1">&#39;boost::serialization&#39;</span> </pre></div></div><p> So I decided to add the line </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/serialization/array_wrapper.hpp&gt;</span><span class="cp"></span> </pre></div></div><p> in both the files <strong>boost/numeric/ublas/storage.hpp</strong> and <strong>boost/numeric/ublas/matrix.hpp</strong> </p> <p> Now my code is building properly! Does this mean a line is missing in the source code of ublas? I would be really surprised. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12982 Trac 1.4.3 anonymous Fri, 21 Apr 2017 23:57:23 GMT version changed https://svn.boost.org/trac10/ticket/12982#comment:1 https://svn.boost.org/trac10/ticket/12982#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.64.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> </ul> Ticket anonymous Mon, 01 May 2017 18:52:59 GMT <link>https://svn.boost.org/trac10/ticket/12982#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12982#comment:2</guid> <description> <p> Thanks so much, i was stuggling with that error message but had no idea what to include where, now its working though! </p> </description> <category>Ticket</category> </item> <item> <author>roel@…</author> <pubDate>Thu, 04 May 2017 15:01:20 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/12982#comment:3 https://svn.boost.org/trac10/ticket/12982#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">roel@…</span> added </li> </ul> Ticket anonymous Thu, 04 May 2017 18:22:46 GMT <link>https://svn.boost.org/trac10/ticket/12982#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12982#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/12982#comment:3" title="Comment 3">roel@…</a>: Hi Roel, what do you mean by "ajouté" ? Did you change something ? Thanks </p> </description> <category>Ticket</category> </item> <item> <author>roel@…</author> <pubDate>Mon, 08 May 2017 09:59:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12982#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12982#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/12982#comment:4" title="Comment 4">anonymous</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/12982#comment:3" title="Comment 3">roel@…</a>: Hi Roel, what do you mean by "ajouté" ? Did you change something ? Thanks </p> </blockquote> <p> I just added myself to the CC list because we've had this issue (<a class="ext-link" href="https://github.com/emweb/wt/pull/114"><span class="icon">​</span>https://github.com/emweb/wt/pull/114</a>), and I want to be notified when something happens with it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 13 Aug 2017 08:39:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12982#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12982#comment:6</guid> <description> <p> I also came across this missing #include. I fixed it in my code bu replacing: </p> <pre class="wiki">#include &lt;boost/numeric/ublas/matrix.hpp&gt; </pre><p> with: </p> <pre class="wiki">#include &lt;boost/serialization/array_wrapper.hpp&gt; #include &lt;boost/numeric/ublas/matrix.hpp&gt; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>xronophobe</dc:creator> <pubDate>Tue, 15 Aug 2017 13:40:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12982#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12982#comment:7</guid> <description> <p> I found this issue too. It appears to me that the array include is not needed anymore in the uBLAS storage. I just modified the </p> <pre class="wiki">#include &lt;boost/serialization/array.hpp&gt; </pre><p> to </p> <pre class="wiki">#include &lt;boost/serialization/array_wrapper.hpp&gt; </pre><p> and it works perfectly. </p> <p> This issue of missing make_array member appears on, and the fix I just described I tested on OS X 10.11.6 and Fedora 25, Boost 1.64.0, custom install path. </p> </description> <category>Ticket</category> </item> </channel> </rss>