Boost C++ Libraries: Ticket #625: Cannot access boost::filesystem namespace https://svn.boost.org/trac10/ticket/625 <pre class="wiki"> Hi. I am quite new to programming, however, I decided to install the boost library as it looks very good. The first two lines of my program are: #include "boost/filesystem/operations.hpp" #include "boost/filesystem/fstream.hpp" Yet when I include the statement: using boost::filesystem; just after, I get an error message saying: "error C2873: 'boost::filesystem' : symbol cannot be used in a using-declaration" I am using Microsoft Visual Studio 2005. Where could I have gone wrong? I have tried to find documentation that will help, but I haven't found anything. I have followed the installation to the letter. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/625 Trac 1.4.3 nobody Tue, 09 May 2006 10:55:46 GMT <link>https://svn.boost.org/trac10/ticket/625#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/625#comment:1</guid> <description> <pre class="wiki">Logged In: NO Hi. I think I have figured out the problem. I was missing the keyword 'namespace', (which doesn't appear to be in the example). Everything seems to be ok now, so please feel free to delete this post. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>vawjr</dc:creator> <pubDate>Tue, 09 May 2006 13:25:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/625#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/625#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=5962 using namespace boost::filesystem; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>nobody</dc:creator> <pubDate>Tue, 20 Jun 2006 14:58:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/625#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/625#comment:3</guid> <description> <pre class="wiki">Logged In: NO boost::filesystem is only a namespace, so you should probably write 'using namespace boost::filesystem;' </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennaro Prota</dc:creator> <pubDate>Thu, 03 Aug 2006 05:56:09 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/625#comment:4 https://svn.boost.org/trac10/ticket/625#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket Daryle Walker Wed, 02 Jul 2008 17:30:07 GMT component changed; severity set https://svn.boost.org/trac10/ticket/625#comment:5 https://svn.boost.org/trac10/ticket/625#comment:5 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> Ticket Daryle Walker Wed, 02 Jul 2008 17:38:56 GMT severity changed https://svn.boost.org/trac10/ticket/625#comment:6 https://svn.boost.org/trac10/ticket/625#comment:6 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> Ticket