<?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[2 GB Filesize Linux C++]]></title><description><![CDATA[<p>Hi @ all<br />
I've got a problem on Linux with C++:<br />
I need to write some simulationdata to a file.<br />
This is really much data and I always get the following<br />
error when exceeding a filesize of 2GB:<br />
&quot;filesize limit exceeded&quot;</p>
<p>It's not a problem with Linux itself, because<br />
with Java I managed to write a 16.9 GB File without any problems.<br />
For some compatibility reason I cannot do the writing of the simulationdata<br />
without C++.</p>
<p>What can I do to write files bigger than that with C++?<br />
There's really no way around, I need that much.</p>
<p>I hope you can help me <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/233022/2-gb-filesize-linux-c</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 03:18:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233022.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Jan 2009 10:39:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 GB Filesize Linux C++ on Fri, 30 Jan 2009 10:39:56 GMT]]></title><description><![CDATA[<p>Hi @ all<br />
I've got a problem on Linux with C++:<br />
I need to write some simulationdata to a file.<br />
This is really much data and I always get the following<br />
error when exceeding a filesize of 2GB:<br />
&quot;filesize limit exceeded&quot;</p>
<p>It's not a problem with Linux itself, because<br />
with Java I managed to write a 16.9 GB File without any problems.<br />
For some compatibility reason I cannot do the writing of the simulationdata<br />
without C++.</p>
<p>What can I do to write files bigger than that with C++?<br />
There's really no way around, I need that much.</p>
<p>I hope you can help me <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1654877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1654877</guid><dc:creator><![CDATA[Pyrodragoon]]></dc:creator><pubDate>Fri, 30 Jan 2009 10:39:56 GMT</pubDate></item><item><title><![CDATA[Reply to 2 GB Filesize Linux C++ on Fri, 30 Jan 2009 10:44:11 GMT]]></title><description><![CDATA[<p>if you're using the glibc functions for writing to the file on a 32bit architecture then you might consider using the</p>
<pre><code class="language-cpp">#define _FILE_OFFSET_BITS 64
</code></pre>
<p>macro before including any standard headers. can't say if it affects the stream operations of libstc++ tho, haven't tested this myself yet <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/1654881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1654881</guid><dc:creator><![CDATA[sothis_]]></dc:creator><pubDate>Fri, 30 Jan 2009 10:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to 2 GB Filesize Linux C++ on Fri, 30 Jan 2009 11:06:33 GMT]]></title><description><![CDATA[<p>Thanks for the fast reaction <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="🙂"
    /><br />
That worked well.<br />
I chanded my code and the file is now bigger than 2GB<br />
without any errors.<br />
Thanks a lot, with this working<br />
I've got a lot of work to do now <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1654897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1654897</guid><dc:creator><![CDATA[Pyrodragoon]]></dc:creator><pubDate>Fri, 30 Jan 2009 11:06:33 GMT</pubDate></item></channel></rss>