<?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[gzstream in C++ Projekt einbinden]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte in einem C++ Projekt (erstellt und Linux mit Netbeans 6.5) gzstream nutzen um gepackte Dateien auslesen zu können. Allerdings gelingt es mir nicht, die entsprechende Dateien dafür einzubinden. Die Erläuterung auf der Entwicklerseite bringt mich auch nicht weiter, bzw. sagt mir nichts. Diese wäre:</p>
<blockquote>
<p>Either compile gzstream.C by hand, place it in some library, and move gzstream.h into the include search path of your compiler. Or use the provided Makefile, adapt its variables, and follow the remarks in the Makefile. Two test programs are provided, test_gzip.C and test_gunzip.C. The Makefile contains a rule that performs a small test with these programs.</p>
</blockquote>
<p>Kann mir da jemand weiterhelfen?<br />
Danke euch! <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 />
mfg</p>
<p>Jojo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/239443/gzstream-in-c-projekt-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 10:03:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/239443.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Apr 2009 14:21:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 14:21:41 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte in einem C++ Projekt (erstellt und Linux mit Netbeans 6.5) gzstream nutzen um gepackte Dateien auslesen zu können. Allerdings gelingt es mir nicht, die entsprechende Dateien dafür einzubinden. Die Erläuterung auf der Entwicklerseite bringt mich auch nicht weiter, bzw. sagt mir nichts. Diese wäre:</p>
<blockquote>
<p>Either compile gzstream.C by hand, place it in some library, and move gzstream.h into the include search path of your compiler. Or use the provided Makefile, adapt its variables, and follow the remarks in the Makefile. Two test programs are provided, test_gzip.C and test_gunzip.C. The Makefile contains a rule that performs a small test with these programs.</p>
</blockquote>
<p>Kann mir da jemand weiterhelfen?<br />
Danke euch! <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 />
mfg</p>
<p>Jojo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700234</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700234</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Thu, 23 Apr 2009 14:21:41 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 15:01:59 GMT]]></title><description><![CDATA[<p>Jojojoxx schrieb:</p>
<blockquote>
<p>Allerdings gelingt es mir nicht, die entsprechende Dateien dafür einzubinden.</p>
</blockquote>
<p>Das ist sehr ungenau. Fällt in etwa in die Kategorie &quot;das geht nicht!&quot;. -&gt; Mehr Infos bitte, was genau gelingt dir daran nicht (Fehlermeldungen)?</p>
<blockquote>
<p>Die Erläuterung auf der Entwicklerseite bringt mich auch nicht weiter, bzw. sagt mir nichts.</p>
</blockquote>
<p>Ist genauso ungenau. Verstehst du den Text nicht? Hast du die Möglichkeiten die dort aufgezeigt werden probiert und hast Fehlermeldungen bekommen oder weißt nicht wie du an einer bestimmten Stelle weiter kommst? -&gt; Noch mehr Infos bitte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700252</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 23 Apr 2009 15:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 15:06:53 GMT]]></title><description><![CDATA[<p>Leider kann ich nicht wirklich viele Informationen geben, da ich wirklich fundamental nicht weiterkomme. Die Anleitung</p>
<pre><code>Either compile gzstream.C by hand, place it in some library, and move gzstream.h into the include search path of your compiler.
</code></pre>
<p>bringt mich nicht wirklich weiter, wie kompiliere ich das? mit &quot;make&quot;, oder mit gcc? Und was bedeutet &quot;place it in some library&quot;, wo liegt die?? Und wie füge ich die gzstream.h in den Suchpfad des Compilers hinzu?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700254</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Thu, 23 Apr 2009 15:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 15:18:08 GMT]]></title><description><![CDATA[<p>Jojojoxx schrieb:</p>
<blockquote>
<p>Leider kann ich nicht wirklich viele Informationen geben</p>
</blockquote>
<p>Die Fehlermeldung des Compilers kannst du immer angeben, egal wie kurz sie ist. Wenns keine Fehlermeldung gibt, kann das zwei gründe haben:<br />
a) Der Compiler hat keine Fehlermeldung ausgegeben, also gein Grund zu Fragen.<br />
b) Du hast nicht compiliert - also auch noch kein Grund zu Fragen.</p>
<blockquote>
<p>bringt mich nicht wirklich weiter, wie kompiliere ich das? mit &quot;make&quot;, oder mit gcc?</p>
</blockquote>
<p>&quot;By hand&quot; compilieren heißt zu Fuß, ohne Hilfsmittel, also nur mit einem Compiler, also gcc in deinem Fall. make wäre die Option mit dem Makefile, die weiter hinten in dem Text beschrieben stand.</p>
<blockquote>
<p>Und was bedeutet &quot;place it in some library&quot;, wo liegt die??</p>
</blockquote>
<p>Die müsstest du selber anlegen, wenn du für deine häufiger gebracuhten Sachen noch keine hast. Es gibt statische und dynamische Libs, wie man die erstellt und mit linkt wird dir die Doku deines Compilers sagen können, was Libraries sind und was der Unterschied zwischen statischen und dynamischen Libs ist kann dir Google/Wikipedian sagen.</p>
<blockquote>
<p>Und wie füge ich die gzstream.h in den Suchpfad des Compilers hinzu?</p>
</blockquote>
<p>Wird dir die Doku deines Compilers bestimmt erklären können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700265</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 23 Apr 2009 15:18:08 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 16:50:09 GMT]]></title><description><![CDATA[<p>Aus welchem Grund kann man die gzstream.c und .h Datei nicht einfach mit ins Verzeichnis kopieren und per Include einbinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700302</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Thu, 23 Apr 2009 16:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 17:08:45 GMT]]></title><description><![CDATA[<p>weil man .c-Dateien nicht per #include einbinden kann sondern sie als eigene Übersetzungseinheit compilieren muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700311</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 23 Apr 2009 17:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 18:46:14 GMT]]></title><description><![CDATA[<p>Achso!<br />
Also ich habe die gzstream.C jetzt kompiliert und eine gzstream.o erhalten.<br />
Anschließend habe ich per</p>
<pre><code>ld -shared gzstream.o -o gzlib.so
</code></pre>
<p>eine Bibliothek daraus erstellt, zumindest hoffe ich dass das eine (korrekte) ist.<br />
Ich habe in Netbeans in den Projektoptionen unter Linker die <a href="http://gzlib.so" rel="nofollow">gzlib.so</a> als Library hinzugefügt, aber ich erhalte den Fehler</p>
<blockquote>
<p>Input.cpp:2:22: Warnung: gzstream.h: No such file or directory</p>
</blockquote>
<p>In dieser zeile steht &quot;#include &lt;gzstream.h&gt;&quot;.<br />
Wie bringe ich Netbeans nun bei diese zu nutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700365</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Thu, 23 Apr 2009 18:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Thu, 23 Apr 2009 20:16:51 GMT]]></title><description><![CDATA[<p>Jojojoxx schrieb:</p>
<blockquote>
<blockquote>
<p>Input.cpp:2:22: Warnung: gzstream.h: No such file or directory</p>
</blockquote>
<p>In dieser zeile steht &quot;#include &lt;gzstream.h&gt;&quot;.<br />
Wie bringe ich Netbeans nun bei diese zu nutzen?</p>
</blockquote>
<p>Das ist dann der Punkt mit dem Suchpfad des Compilers. Gibts bestimmt auch in den Projektoptionen deiner IDE (beim gcc ists meine ich -I/pfad/zum/header/oder/sowas/)<br />
Schau außerdem mal nach dem Unterschied zwischen &quot;gzstream.h&quot; und &lt;gzstream.h&gt; in der Doku deines Compilers.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700430</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 23 Apr 2009 20:16:51 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Fri, 24 Apr 2009 09:20:29 GMT]]></title><description><![CDATA[<p>Wenn ich die gzstream.h mit</p>
<pre><code>#include &quot;gzstream.h&quot;
</code></pre>
<p>einbinde, dann scheint der Compiler die Datei auch zu finden. Doch dann erhalte ich einen anderen Fehler, der mir nichts sagt, nämlich</p>
<blockquote>
<p>/usr/bin/ld: translator: hidden symbol `__dso_handle' in /usr/lib/gcc/i486-linux-gnu/4.3.3/crtbegin.o is referenced by DSO<br />
/usr/bin/ld: final link failed: Nonrepresentable section on output<br />
collect2: ld gab 1 als Ende-Status zurück</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1700606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700606</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Fri, 24 Apr 2009 09:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Fri, 24 Apr 2009 11:47:26 GMT]]></title><description><![CDATA[<p>Fehlermeldungen die einem nichts sagen sollte man einfach erstmal so wie sie sind in google eingeben - meistens bist du nicht der erste der danach sucht<br />
Bei der Suche nach</p>
<pre><code>hidden symbol is referenced by dso
</code></pre>
<p>bin ich auf folgenden Thread gestoßen:<br />
<a href="http://sources.redhat.com/ml/binutils/2004-12/msg00032.html" rel="nofollow">http://sources.redhat.com/ml/binutils/2004-12/msg00032.html</a></p>
<p>vielleicht hilft dir der weiter (follwoups beachten). Dort steht was von wegen &quot;was built incorrectly&quot;. Schaut so aus als ob du beim Erstellen der lib was nicht mit reingelinkt hast was rein müsste.</p>
<p>Ich selbst kenn den Fehler auch nicht, kann also auch nichts genaueres sagen. Hast dus evtl. mal mit dem makefile versucht? Bzw. das Makefile mal gelesen, da steht vermutlich auch mit drin, welche libs noch beim Erstellen in die <a href="http://gzlib.so" rel="nofollow">gzlib.so</a> mit gelinkt werden müssen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1700680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1700680</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Fri, 24 Apr 2009 11:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to gzstream in C++ Projekt einbinden on Sun, 26 Apr 2009 10:32:18 GMT]]></title><description><![CDATA[<p>Mhhhh...</p>
<p>Also die 2. Möglichkeit mit Makefile habe ich mal versucht.<br />
Ich habe mit make alles kompiliert, und auch die gzstream.o erhalten.<br />
Was genau beudetet</p>
<blockquote>
<p>adapt its variables</p>
</blockquote>
<p>Und auch aus den &quot;remarks&quot; werde ich nicht schlau... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1701410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1701410</guid><dc:creator><![CDATA[Jojojoxx]]></dc:creator><pubDate>Sun, 26 Apr 2009 10:32:18 GMT</pubDate></item></channel></rss>