<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&amp;lt;boost&#x2F;filesystem&#x2F;operations.hpp&amp;gt; nicht gefunden]]></title><description><![CDATA[<p>Moin moin,<br />
ich habe ein kleines Problem und hoffe dass mir hier jemand weiterhelfen kann.</p>
<p>Ich bringe mir zur Zeit selbstständig den Umgang mit C++ bei. Dafür besitze ich ein Buch (&quot;Der C++ Programmierer&quot;, ISBN: <a href="https://duckduckgo.com/?q=isbn+9783446416444&amp;cppnetbooks" rel="nofollow">Der C++-Programmierer | ISBN: 9783446416444</a>)</p>
<p>Als Entwicklungsumgebung benutze ich Dev-C++ und der Compiler ist MingGW.</p>
<p>Der Code (1:1 aus dem Buch abgeschrieben) sieht wie folgt aus und soll eigentlich den Inhalt eines Verzeichnisses anzeigen:</p>
<pre><code class="language-cpp">#include &lt;boost/filesystem/operations.hpp&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;
namespace bf=boost::filesystem;

int main(int argc, char*argv[])
{
    if(argc &gt; 2)
    {
            cout &lt;&lt; &quot;Verzeichnis anzeigen\n&quot;
            &quot;Gebrauch: loeschen.exe [name]&quot; &lt;&lt; endl;
    }
    else
    {
            string verz(&quot;.&quot;);
            if(argc &gt; 1)
            {
                    verz = argv[1];
            }
            try
            {
                    bf::path pfad(verz);
                    bf::directory_iterator di(pfad), ende;
                    while(di != ende)
                    {
                             bf::path p = di-&gt;path();
                             bf::file_status status = di-&gt;status();
                             cout &lt;&lt; p.file_string() &lt;&lt; '\t';
                             if(bf::is_directory(status))
                             {
                                                         cout &lt;&lt; &quot;(Verzeichnis)&quot;;
                             }
                             else
                             {
                                                         cout &lt;&lt; bf::file_size(p) &lt;&lt; &quot; Bytes&quot;;
                             }
                             time_t t = bf::last_write_time(p);
                             cout &lt;&lt; '\t' &lt;&lt; ctime(&amp;t);
                             ++di;
                    }
            }
            catch(const exeption&amp; e)
            {
                        cerr &lt;&lt; &quot;Anzeige des Verzeichnisses &quot; &lt;&lt; argv[1] &lt;&lt; &quot; fehlgeschlagen: &quot; &lt;&lt; e.what() &lt;&lt; endl;
            }
    }
}
</code></pre>
<p>Leider bekomme ich Probleme beim compilieren.<br />
folgende Information wird mir gegeben:<br />
&quot;boost/filesystem/operations.hpp: No such file or directory.&quot;<br />
Daraus verstehe ich, dass er die geforderte Datei nicht findet.<br />
Natürlich habe ich zuerst geschaut ob ich mich vertippt habe.<br />
Ich habe schon google gefragt und hier im Forum die Suchfunktion benutzt. Leider hat mir das nicht wirklich weiter geholfen. Desshalb frag ich mal direkt.<br />
Kann mir jemand bei meinem Problem helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/279297/lt-boost-filesystem-operations-hpp-gt-nicht-gefunden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 16:24:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/279297.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Dec 2010 08:34:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;lt;boost&#x2F;filesystem&#x2F;operations.hpp&amp;gt; nicht gefunden on Thu, 23 Dec 2010 08:34:19 GMT]]></title><description><![CDATA[<p>Moin moin,<br />
ich habe ein kleines Problem und hoffe dass mir hier jemand weiterhelfen kann.</p>
<p>Ich bringe mir zur Zeit selbstständig den Umgang mit C++ bei. Dafür besitze ich ein Buch (&quot;Der C++ Programmierer&quot;, ISBN: <a href="https://duckduckgo.com/?q=isbn+9783446416444&amp;cppnetbooks" rel="nofollow">Der C++-Programmierer | ISBN: 9783446416444</a>)</p>
<p>Als Entwicklungsumgebung benutze ich Dev-C++ und der Compiler ist MingGW.</p>
<p>Der Code (1:1 aus dem Buch abgeschrieben) sieht wie folgt aus und soll eigentlich den Inhalt eines Verzeichnisses anzeigen:</p>
<pre><code class="language-cpp">#include &lt;boost/filesystem/operations.hpp&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;
namespace bf=boost::filesystem;

int main(int argc, char*argv[])
{
    if(argc &gt; 2)
    {
            cout &lt;&lt; &quot;Verzeichnis anzeigen\n&quot;
            &quot;Gebrauch: loeschen.exe [name]&quot; &lt;&lt; endl;
    }
    else
    {
            string verz(&quot;.&quot;);
            if(argc &gt; 1)
            {
                    verz = argv[1];
            }
            try
            {
                    bf::path pfad(verz);
                    bf::directory_iterator di(pfad), ende;
                    while(di != ende)
                    {
                             bf::path p = di-&gt;path();
                             bf::file_status status = di-&gt;status();
                             cout &lt;&lt; p.file_string() &lt;&lt; '\t';
                             if(bf::is_directory(status))
                             {
                                                         cout &lt;&lt; &quot;(Verzeichnis)&quot;;
                             }
                             else
                             {
                                                         cout &lt;&lt; bf::file_size(p) &lt;&lt; &quot; Bytes&quot;;
                             }
                             time_t t = bf::last_write_time(p);
                             cout &lt;&lt; '\t' &lt;&lt; ctime(&amp;t);
                             ++di;
                    }
            }
            catch(const exeption&amp; e)
            {
                        cerr &lt;&lt; &quot;Anzeige des Verzeichnisses &quot; &lt;&lt; argv[1] &lt;&lt; &quot; fehlgeschlagen: &quot; &lt;&lt; e.what() &lt;&lt; endl;
            }
    }
}
</code></pre>
<p>Leider bekomme ich Probleme beim compilieren.<br />
folgende Information wird mir gegeben:<br />
&quot;boost/filesystem/operations.hpp: No such file or directory.&quot;<br />
Daraus verstehe ich, dass er die geforderte Datei nicht findet.<br />
Natürlich habe ich zuerst geschaut ob ich mich vertippt habe.<br />
Ich habe schon google gefragt und hier im Forum die Suchfunktion benutzt. Leider hat mir das nicht wirklich weiter geholfen. Desshalb frag ich mal direkt.<br />
Kann mir jemand bei meinem Problem helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1998169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998169</guid><dc:creator><![CDATA[Der_Lars]]></dc:creator><pubDate>Thu, 23 Dec 2010 08:34:19 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;lt;boost&#x2F;filesystem&#x2F;operations.hpp&amp;gt; nicht gefunden on Thu, 23 Dec 2010 09:12:36 GMT]]></title><description><![CDATA[<p>boost hast du aber installiert? Es ist nicht Teil der Standardinstallation ...</p>
<p><a href="http://www.boost.org/" rel="nofollow">http://www.boost.org/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1998178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998178</guid><dc:creator><![CDATA[padreigh]]></dc:creator><pubDate>Thu, 23 Dec 2010 09:12:36 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;lt;boost&#x2F;filesystem&#x2F;operations.hpp&amp;gt; nicht gefunden on Thu, 23 Dec 2010 09:11:31 GMT]]></title><description><![CDATA[<p>Hast Du diese Datei überhaupt? Die gehört ja nicht zum C++ Standard, sondern ist Teil der Boost-Bibliotheken-Sammlung. Und wenn ja, hast Du Deinem Compiler auch mitgeteilt, wo sie zu finden ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1998180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998180</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 23 Dec 2010 09:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;lt;boost&#x2F;filesystem&#x2F;operations.hpp&amp;gt; nicht gefunden on Thu, 23 Dec 2010 11:26:12 GMT]]></title><description><![CDATA[<p>Der Code ist <strong>nicht</strong> 1:1 abgeschrieben, z.B steht in meinem Exemplar nicht &quot;Gebrauch: loeschen.exe&quot; sondern &quot;Gebrauch: verzeichnisanzeigen.exe [name]&quot; (Rest nicht geprüft)</p>
<p>Boost ist auf der DVD, aber man kann es vorübersetzt und aktualisiert von<br />
<a href="http://www.cppbuch.de/swupdate.html" rel="nofollow">http://www.cppbuch.de/swupdate.html</a> herunterladen. Vorher empfiehlt sich en Update von MinGW, auf derselben Seite erhältlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1998238</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998238</guid><dc:creator><![CDATA[rumpelpumpel]]></dc:creator><pubDate>Thu, 23 Dec 2010 11:26:12 GMT</pubDate></item></channel></rss>