Boost C++ Libraries: Ticket #1143: Archive headers appear to be missing multiple(?) include files https://svn.boost.org/trac10/ticket/1143 <p> Here is my test program: </p> <pre class="wiki">#include &lt;boost/archive/binary_iarchive.hpp&gt; #include &lt;boost/archive/binary_oarchive.hpp&gt; #include &lt;boost/archive/xml_iarchive.hpp&gt; #include &lt;boost/archive/xml_oarchive.hpp&gt; int main(void) { return 0; } </pre><p> Here are the first few lines of gcc output: </p> <pre class="wiki">../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: ISO C++ forbids declaration of ‘scoped_ptr’ with no type ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: invalid use of ‘::’ ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: expected ‘;’ before ‘&lt;’ token ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error: ISO C++ forbids declaration of ‘basic_streambuf_locale_saver’ with no type ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error: expected ‘;’ before ‘&lt;’ token ../boost/boost/boost/archive/basic_binary_iprimitive.hpp: In member function ‘void boost::archive::boost::archive::basic_binary_iprimitive&lt;Archive, Elem, Tr&gt; ::load_binary(void*, size_t)’: ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:150: error: ‘throw_exception’ is not a member of ‘boost::archive::boost’ </pre><p> It looks to my untrained eye that there could be several includes missing, or perhaps some circular including going on. </p> <p> I am using an ubuntu 7.04 distribution, gcc 4.1.2, etc. I am building boost myself. I am upgrading from boost 1.32.0, under which I did not experience this problem. </p> <p> Benjamin. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1143 Trac 1.4.3 anonymous Mon, 27 Aug 2007 02:38:02 GMT <link>https://svn.boost.org/trac10/ticket/1143#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1143#comment:1</guid> <description> <p> This is the problem which is related to the miss place close braces in <strong>boost/archive/basic_streambuf_locale_saver.hpp</strong> To fix the problem, simply move the namespace close braces into the #endif for BOOST_NO_STD_LOCALE. (this works only with the machine with &lt;locale&gt;, otherwise, more fixes are required.)<br /> Cheers.<br /> Shirley </p> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1143" title="#1143: Bugs: Archive headers appear to be missing multiple(?) include files (closed: fixed)">anonymous</a>: </p> <blockquote class="citation"> <p> Here is my test program: </p> <pre class="wiki">#include &lt;boost/archive/binary_iarchive.hpp&gt; #include &lt;boost/archive/binary_oarchive.hpp&gt; #include &lt;boost/archive/xml_iarchive.hpp&gt; #include &lt;boost/archive/xml_oarchive.hpp&gt; int main(void) { return 0; } </pre><p> Here are the first few lines of gcc output: </p> <pre class="wiki">../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: ISO C++ forbids declaration of ‘scoped_ptr’ with no type ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: invalid use of ‘::’ ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: expected ‘;’ before ‘&lt;’ token ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error: ISO C++ forbids declaration of ‘basic_streambuf_locale_saver’ with no type ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error: expected ‘;’ before ‘&lt;’ token ../boost/boost/boost/archive/basic_binary_iprimitive.hpp: In member function ‘void boost::archive::boost::archive::basic_binary_iprimitive&lt;Archive, Elem, Tr&gt; ::load_binary(void*, size_t)’: ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:150: error: ‘throw_exception’ is not a member of ‘boost::archive::boost’ </pre><p> It looks to my untrained eye that there could be several includes missing, or perhaps some circular including going on. </p> <p> I am using an ubuntu 7.04 distribution, gcc 4.1.2, etc. I am building boost myself. I am upgrading from boost 1.32.0, under which I did not experience this problem. </p> <p> Benjamin. </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sun, 09 Sep 2007 18:12:14 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/1143#comment:2 https://svn.boost.org/trac10/ticket/1143#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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> fixed in next release </p> Ticket