<?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[Wie boost filesstem einsetzen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schäme mich fast für die frage...</p>
<p>Was muss ich tun, damit ich boost::filesystem in meinem c++-Programm einsetzen kann?<br />
Muss ich die headerdatei erst downloaden?<br />
In den Codes wo boost:filesystem benutzt wird, steht immer</p>
<pre><code class="language-cpp">#include &quot;boost\filesystem\operations.hpp&quot;
namespace boostFS = boost::filesystem;
</code></pre>
<p>so etwas in der Art.</p>
<p>Leider kann ich hiermit wenig anfangen, gibt es nicht soetwas wie</p>
<pre><code class="language-cpp">#include &lt;boost&gt;
</code></pre>
<p>Sorry für die Anfängerfrage, aber habe bis jetzt nur mit STL zu tun gehabt.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/234136/wie-boost-filesstem-einsetzen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 01:03:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/234136.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Feb 2009 14:10:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 13 Feb 2009 14:10:07 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich schäme mich fast für die frage...</p>
<p>Was muss ich tun, damit ich boost::filesystem in meinem c++-Programm einsetzen kann?<br />
Muss ich die headerdatei erst downloaden?<br />
In den Codes wo boost:filesystem benutzt wird, steht immer</p>
<pre><code class="language-cpp">#include &quot;boost\filesystem\operations.hpp&quot;
namespace boostFS = boost::filesystem;
</code></pre>
<p>so etwas in der Art.</p>
<p>Leider kann ich hiermit wenig anfangen, gibt es nicht soetwas wie</p>
<pre><code class="language-cpp">#include &lt;boost&gt;
</code></pre>
<p>Sorry für die Anfängerfrage, aber habe bis jetzt nur mit STL zu tun gehabt.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663219</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663219</guid><dc:creator><![CDATA[boost_filesystem]]></dc:creator><pubDate>Fri, 13 Feb 2009 14:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 13 Feb 2009 14:12:00 GMT]]></title><description><![CDATA[<p>Du musst natürlich die Boost-Bibliothek zuerst herunterladen. Am besten mit einem Installer installieren, dann ist gleich alles gemacht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://www.boost.org" rel="nofollow">www.boost.org</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663223</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Fri, 13 Feb 2009 14:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 13 Feb 2009 14:17:09 GMT]]></title><description><![CDATA[<p>Der Link hier kam letztens von drakon. Vielleicht hilft der ja auch.<br />
<a href="http://www.spieleprogrammierer.de/phpBB2/viewtopic.php?t=10842" rel="nofollow">http://www.spieleprogrammierer.de/phpBB2/viewtopic.php?t=10842</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663224</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 13 Feb 2009 14:17:09 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 13 Feb 2009 15:32:00 GMT]]></title><description><![CDATA[<p>super, dankeschön <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663287</guid><dc:creator><![CDATA[boost_filesystem]]></dc:creator><pubDate>Fri, 13 Feb 2009 15:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sat, 14 Feb 2009 16:05:03 GMT]]></title><description><![CDATA[<p>noch zwei Fragen:</p>
<p>1. Was muss ich schreiben wenn ich die für meinen borland erzeugen will?<br />
unter Punkt 4: Boost vorbereiten im Tutorial.</p>
<p>im cmd soll ich bei VisualStudio:</p>
<pre><code>bjam toolset=msvc-9.0 variant=debug variant=release threading=multi link=static
</code></pre>
<p>eingeben und für Borland?</p>
<p>wenn ich</p>
<pre><code>bjam toolset=[b]borland[/b] variant=debug variant=release threading=multi link=static
</code></pre>
<p>eingebe, bringt er fehler und warnings...</p>
<p>2. Wie kann ich den borland dann sagen wo er die libs findet?<br />
Bei visual wars einfach, aber borland...</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663804</guid><dc:creator><![CDATA[boost_filesystem]]></dc:creator><pubDate>Sat, 14 Feb 2009 16:05:03 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sat, 14 Feb 2009 16:23:43 GMT]]></title><description><![CDATA[<p>boost_filesystem schrieb:</p>
<blockquote>
<p>noch zwei Fragen:</p>
<p>1. Was muss ich schreiben wenn ich die für meinen borland erzeugen will?<br />
unter Punkt 4: Boost vorbereiten im Tutorial.</p>
<p>im cmd soll ich bei VisualStudio:</p>
<pre><code>bjam toolset=msvc-9.0 variant=debug variant=release threading=multi link=static
</code></pre>
<p>eingeben und für Borland?</p>
<p>wenn ich</p>
<pre><code>bjam toolset=[b]borland[/b] variant=debug variant=release threading=multi link=static
</code></pre>
<p>eingebe, bringt er fehler und warnings...</p>
<p>2. Wie kann ich den borland dann sagen wo er die libs findet?<br />
Bei visual wars einfach, aber borland...</p>
<p>MfG</p>
</blockquote>
<p>Schau doch mal in das Installations-Manual, dort werden alle Werte für jeden Compiler aufgelistet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663814</guid><dc:creator><![CDATA[Tippgeber]]></dc:creator><pubDate>Sat, 14 Feb 2009 16:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sat, 14 Feb 2009 17:10:56 GMT]]></title><description><![CDATA[<p>Ja, da steht das es borland heißen muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1663845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1663845</guid><dc:creator><![CDATA[boost_filesystem]]></dc:creator><pubDate>Sat, 14 Feb 2009 17:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sun, 15 Feb 2009 09:48:30 GMT]]></title><description><![CDATA[<p>Welchen Borland-Compiler hast du denn?<br />
Für den BCB2007 kann es z.Bsp. so heißen</p>
<blockquote>
<p>bjam borland --build-type=complete &quot;--build-dir=d:/Programming/boost_org/boost_1_37_0/bcb2007&quot; &quot;--prefix=d:/Programming/boost_org/boost_1_37_0/bcb2007&quot; &quot;-sBCCROOT=C:/Programme/CodeGear/RADStudio/5_0&quot; --with-filesystem install</p>
</blockquote>
<p>build-dir und prefix geben dabei die Verzeichnisse an wo die temporären Datein und das Ergebnis landen. sBCCROOT gibt den Pfad zum Compiler an.<br />
Das musst du also noch anpassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1664048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664048</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Sun, 15 Feb 2009 09:48:30 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sun, 15 Feb 2009 10:46:23 GMT]]></title><description><![CDATA[<p>boost_filesystem schrieb:</p>
<blockquote>
<pre><code class="language-cpp">#include &quot;boost\filesystem\operations.hpp&quot;
namespace boostFS = boost::filesystem;
</code></pre>
<p>so etwas in der Art.</p>
</blockquote>
<p>Und ich schäme mich für meine Frage. (Muss mich als totaler Windows-Noob outen...)<br />
Kommt der Windows-Compiler mit Backslash &quot;\&quot; zurecht?!? Ich dachte immer, dass der normale Slash &quot;/&quot; Standard ist.</p>
<p>In jedem Fall kompiliert es nicht unter Linux.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1664083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664083</guid><dc:creator><![CDATA[franz]]></dc:creator><pubDate>Sun, 15 Feb 2009 10:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sun, 15 Feb 2009 12:43:02 GMT]]></title><description><![CDATA[<p>Mach einen Slash (&quot;/&quot;), dann hast du keine Probleme.</p>
<p>Beim Backslash muss man berücksichtigen, dass &quot;\&quot; gefolgt von einem Zeichen eine Escapesequenz darstellt, von daher muss man &quot;\\&quot; nehmen.</p>
<p><em>Edit: Text so verändert, dass Backslashs richtig angezeigt werden.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1664146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1664146</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 15 Feb 2009 12:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:17:33 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich habe hier ein Frage, bei der Verwendung von boost::filesystem.</p>
<p>Diese stellt ja ein Framework für den Dateizugriff dar, aber ich finde keine Klasse mit der ich ein File einlesen kann? Ich möchte ein jpg einlesen und dieses Framework verwenden...oder macht man das ganz normal mit fread?</p>
<p>Also gibt es in boost::filesystem auch einen &quot;Ersatz&quot; für fread? Ich möchte irgendwie nicht das Framework verwenden und dann auf eine Basisfunktion wie fread zurückgreifen!</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693850</guid><dc:creator><![CDATA[Reinoslav1]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:17:33 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:24:54 GMT]]></title><description><![CDATA[<p>Das hat dann nix mehr mit boost::fileystem zu tun. Das einlesen kannst du mit der Standardbibliotheks Klassen machen. (<a href="http://www.cplusplus.com/reference/iostream/ifstream/" rel="nofollow">std::ifstream).</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693857</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:27:01 GMT]]></title><description><![CDATA[<p>OK, also für das einlesen eines jpg verwendet man kein boost und kein stl? danke! alles klar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693858</guid><dc:creator><![CDATA[Reinoslav1]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:28:52 GMT]]></title><description><![CDATA[<p>Doch naklar,man verwendet die stl, lies den Beitrag von drakon genau.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693860</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:35:44 GMT]]></title><description><![CDATA[<p>ok, wie weiß man dass etwas nicht zur stl gehört? fread gehört ja beispielsweise nicht dazu oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693864</guid><dc:creator><![CDATA[Reinoslav1]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:35:44 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:37:24 GMT]]></title><description><![CDATA[<p>Alles was du <a href="http://www.cplusplus.com/reference/" rel="nofollow">HIER</a> findest, gehört zur STL</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693865</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:37:24 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 09:48:18 GMT]]></title><description><![CDATA[<p>Firefighter schrieb:</p>
<blockquote>
<p>Alles was du <a href="http://www.cplusplus.com/reference/" rel="nofollow">HIER</a> findest, gehört zur STL</p>
</blockquote>
<p>Nicht wirklich. STL heisst ja Standard Template Library. Also ist das einfach der Teil der Standardbibliothek, der templates benutzt. Sprich damit sind normalerweise die Container und Funktionen gemeint. (und nicht der C-Teil, wie z.B cmath usw. ). Dazu kann man die stream Klassen auch noch zählen, da die ja auch templates sind. Allerdings ist der Begriff ja nicht definiert und somit nicht 100% klar, was damit gemeint ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693869</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Fri, 10 Apr 2009 09:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 11:27:03 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>Nicht wirklich. STL heisst ja Standard Template Library. Also ist das einfach der Teil der Standardbibliothek, der templates benutzt.</p>
</blockquote>
<p>Das wäre aber ein sehr grosser Teil. Streams und <code>std::tr1::shared_ptr</code> würde ich zum Beispiel nicht dazu zählen.</p>
<p>Der Begriff ist zwar nicht genau definiert, aber meistens wird er im Zusammenhang mit den Containern, Algorithmen und Iteratoren verwendet. Auf der Seite wird die Standard Template Library meiner Meinung nach am ehesten durch folgende Links repräsentiert:<br />
<a href="http://www.cplusplus.com/reference/stl/" rel="nofollow">http://www.cplusplus.com/reference/stl/</a><br />
<a href="http://www.cplusplus.com/reference/algorithm/" rel="nofollow">http://www.cplusplus.com/reference/algorithm/</a><br />
<a href="http://www.cplusplus.com/reference/std/iterator/" rel="nofollow">http://www.cplusplus.com/reference/std/iterator/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693914</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Fri, 10 Apr 2009 11:27:03 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Fri, 10 Apr 2009 11:47:01 GMT]]></title><description><![CDATA[<p>Naja. Für mich schon. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Aber ich habe ja geschrieben, dass normalerweise Container und die Funktionen damit gemeint sind..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1693921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1693921</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Fri, 10 Apr 2009 11:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sat, 11 Apr 2009 07:48:35 GMT]]></title><description><![CDATA[<p>Noch eine Frage:</p>
<p>Wenn ich folgenden dieses Struct definiere:</p>
<pre><code class="language-cpp">typedef struct {
    unsigned short a;      //2Bytes
    unsigned int b;        //4Bytes
    unsigned int c;        //4Bytes
} DATA_HEADER;
</code></pre>
<p>Und dieses dann wie folgt befülle:</p>
<pre><code class="language-cpp">DATA_HEADER header;
ifstream file (&quot;test.dat&quot;, ios::in|ios::binary);

file.seekg (0, ios::beg);
file.read ((char*) &amp;header, sizeof(header));
file.close();
</code></pre>
<p>Kann ich mir dann sicher sein, dass die ersten zwei Bytes in header.a, die nächsten 4 Bytes in header.b usw liegen? Oder ist diese Methode eher unsicher?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1694257</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1694257</guid><dc:creator><![CDATA[Reinoslav1]]></dc:creator><pubDate>Sat, 11 Apr 2009 07:48:35 GMT</pubDate></item><item><title><![CDATA[Reply to Wie boost filesstem einsetzen on Sat, 11 Apr 2009 09:12:47 GMT]]></title><description><![CDATA[<p>Reinoslav1 schrieb:</p>
<blockquote>
<p>Kann ich mir dann sicher sein, dass die ersten zwei Bytes in header.a, die nächsten 4 Bytes in header.b usw liegen? Oder ist diese Methode eher unsicher?</p>
</blockquote>
<p>Die Ausrichtung der Member in der Klasse (Alignment) wird vom Standard nicht vorgeschrieben und kann demnach von Compiler zu Compiler variieren. Oft kannst du die Pack-Grösse aber einstellen (unter MSVC++ z.B. mit <code>#pragma pack</code> ). Das binäre Schreiben sollte allerdings gehen, solange das Alignment gleich ist. Aber wenn du beispielsweise als Text schreibst, bist du natürlich viel flexibler.</p>
<p>Zudem ist <code>typedef struct {} name;</code> in C++ sehr unüblich, da eine Struktur bereits selber einen vollständigen Typ angibt. Also eher <code>struct name {};</code> . Und das ist zwar ein bisschen Ansichtssache, aber ich würde die C-Casts unbedingt durch <code>reinterpret_cast</code> ersetzen. Meiner Meinung nach sieht man dabei schneller, was passiert, und vermeidet auch Fehler, weil man den Cast spezifiziert (C-Casts casten nämlich fast alles).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1694285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1694285</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 11 Apr 2009 09:12:47 GMT</pubDate></item></channel></rss>