<?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[gzip &#x2F;&#x2F; #define probleme]]></title><description><![CDATA[<p>Hallo,</p>
<p>hat schon mal jemand probiert eine gzip-dll zu verwenden?</p>
<p>Ich habe nämlich ein kleines Problem mit der <a href="http://www.gzip.org/zlib" rel="nofollow">www.gzip.org/zlib</a> - hat die jemand schon benutzt?<br />
Mein Problem ist folgendes:</p>
<p>1. sagt die Doku, dass ich es mit der option -a compilen muss (die schreiben 4-byte alignment) - wenn ich das aber richtig sehe, dann wäre -a4 4-byte alignment, bzw. options-&gt;Advanced Compiler-&gt;Data alignment-&gt;Double Word</p>
<p>stimmt ihr mir da zu?</p>
<ol start="2">
<li></li>
</ol>
<p>beschwert sich der compiler bei folgendem:</p>
<pre><code class="language-cpp">typedef unsigned char Byte;
...
#ifdef SMALL MEDIUM
 /* Borland C/C++ and some old MSC versions ignore FAR inside typdef */
# define Bytef Byte FAR
#else

  typedef Byte  Bytef FAR
#endif
</code></pre>
<p>- da sagt er: Zeile typedef Byte Bytef FAR<br />
Ambiguity between &quot;Byte&quot; and &quot;System::Byte&quot;</p>
<p>Hat da einer ne Idee?</p>
<p>ich hab mal probehalber gesagt:</p>
<pre><code class="language-cpp">typedef unsigned char Byteg;

#ifdef SMALL MEDIUM
 /* Borland C/C++ and some old MSC versions ignore FAR inside typdef */
# define Bytef Byteg FAR
#else

  typedef Byteg  Bytef FAR
#endif
</code></pre>
<p>-- dann compiliert er zwar, aber die routine inflate(..) meldet immer noch: data_error:(</p>
<p>könnt Ihr mir ein paar Tipps geben?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/106535/gzip-define-probleme</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 06:05:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/106535.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Apr 2005 10:11:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gzip &#x2F;&#x2F; #define probleme on Mon, 11 Apr 2005 13:01:16 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hat schon mal jemand probiert eine gzip-dll zu verwenden?</p>
<p>Ich habe nämlich ein kleines Problem mit der <a href="http://www.gzip.org/zlib" rel="nofollow">www.gzip.org/zlib</a> - hat die jemand schon benutzt?<br />
Mein Problem ist folgendes:</p>
<p>1. sagt die Doku, dass ich es mit der option -a compilen muss (die schreiben 4-byte alignment) - wenn ich das aber richtig sehe, dann wäre -a4 4-byte alignment, bzw. options-&gt;Advanced Compiler-&gt;Data alignment-&gt;Double Word</p>
<p>stimmt ihr mir da zu?</p>
<ol start="2">
<li></li>
</ol>
<p>beschwert sich der compiler bei folgendem:</p>
<pre><code class="language-cpp">typedef unsigned char Byte;
...
#ifdef SMALL MEDIUM
 /* Borland C/C++ and some old MSC versions ignore FAR inside typdef */
# define Bytef Byte FAR
#else

  typedef Byte  Bytef FAR
#endif
</code></pre>
<p>- da sagt er: Zeile typedef Byte Bytef FAR<br />
Ambiguity between &quot;Byte&quot; and &quot;System::Byte&quot;</p>
<p>Hat da einer ne Idee?</p>
<p>ich hab mal probehalber gesagt:</p>
<pre><code class="language-cpp">typedef unsigned char Byteg;

#ifdef SMALL MEDIUM
 /* Borland C/C++ and some old MSC versions ignore FAR inside typdef */
# define Bytef Byteg FAR
#else

  typedef Byteg  Bytef FAR
#endif
</code></pre>
<p>-- dann compiliert er zwar, aber die routine inflate(..) meldet immer noch: data_error:(</p>
<p>könnt Ihr mir ein paar Tipps geben?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763904</guid><dc:creator><![CDATA[JohnnyB]]></dc:creator><pubDate>Mon, 11 Apr 2005 13:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to gzip &#x2F;&#x2F; #define probleme on Mon, 11 Apr 2005 14:04:46 GMT]]></title><description><![CDATA[<p>Das liegt an der Include-Reihenfolge. zeig mal den Code wo du die Includes reingeschrieben hast...</p>
<p>-junix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/764075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764075</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:04:46 GMT</pubDate></item><item><title><![CDATA[Reply to gzip &#x2F;&#x2F; #define probleme on Mon, 11 Apr 2005 14:15:03 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;Buttons.hpp&gt;
#include &quot;startbar.h&quot;
#include &lt;stdio&gt;
#include &lt;assert.h&gt;

#include &lt;zconf.h&gt;
#include &lt;zlib.h&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/764089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764089</guid><dc:creator><![CDATA[JohnnyB]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to gzip &#x2F;&#x2F; #define probleme on Mon, 11 Apr 2005 14:24:53 GMT]]></title><description><![CDATA[<p>Schieb mal Z-dingsda jeweils ganz nach oben. (so interessehalber)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/764099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764099</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to gzip &#x2F;&#x2F; #define probleme on Mon, 11 Apr 2005 14:31:03 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>danke, aber das ändert leider gar nichts:)</p>
<p>ich habe aber mittlerweile noch ein paar sachen ausprobiert und bin auf folgende interessante tatsachge gestoßen:</p>
<p>wenn ich etwas mit &quot;meinem&quot; gzip programm komprimiere, dann kommt eine .gz heraus, die für winrar ungültig, für &quot;mein&quot; programm jedoch lesbar ist.</p>
<p>und genauso umgekehrt (eine &quot;normale; korrekt&quot; komprimierte .gz ist für mein programm ungültig, aber alle anderen programme können es problemlos übersetzen</p>
<p>ich *glaube* es hat was mit dem alignment zu tun - auf jeden fall hat es bestimmt was mit dem cbuilder und irgendner einstellung zu tun, die nicht &quot;c-like&quot; ist (klar - ist ja c++ - aber da muss es irgendwas geben, was bspw. ein byte so bestimmt, dass der gzip algorithmus der zlib nicht funktioniert)...</p>
<p>hast du ne vorstellung, was das sein könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/764109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764109</guid><dc:creator><![CDATA[JohnnyB]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:31:03 GMT</pubDate></item></channel></rss>