<?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[Socket Klasse kompillieren]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe heute versucht, eine Bibliothek für Sockets zu kompillieren, die unter Windows und Linux funktionieren soll. Leider funktioniert das kompillieren nicht richtig. Unter Linux funktioniert es, aber unter Windows klappt es nicht.<br />
Wenn ich das Projekt kompilliern will (egal ob mit Dev-C oder Visual Studio) funktioniert das erstellen der Bibliothek einwandfrei. Allerdings, sobald ich dann das Testprogramm kompillieren will, funktioniert es nicht. Es gibt eine Reihe von &quot;undefined reference to xy&quot;. Schafft es von euch jemand, das Projekt zu kompillieren?</p>
<p>Auf folgendes müsst ihr achten:<br />
1. Beim Testprogramm werden alle includes mit #include &lt;xyz.h&gt; eingebunden. Die müsst ihr aber mit #include &quot;xyz.h&quot; einbinden, weil ihr ja die Dateien nicht in eurem Include-Verzeichnis habt.<br />
2. OpenSSL-Unterstützung deaktivieren<br />
Microsoft Visual Studio:<br />
unter den Projekteinstellungen:<br />
C++&gt; Preprocessor &gt; Preprocessor Definitions:HAVE_OPENSSL löschen<br />
Project Properties&gt;Librarian&gt;General&gt;Additional Dependencies: libeay32.lib ssleay32.lib<br />
Dev-C:<br />
Projekt-Optionen&gt;Parameter<br />
-DHAVE_OPENSSL löschen<br />
und unter Linker libeay32.a ssleay32.a löschen<br />
3. Überprüfen ob ihr auch die richtige Bibliothek linkt, ist nämlich falsch eingestellt am Anfang.</p>
<p>So und nun dir URL zur Bibliothek:<br />
<a href="http://www.alhem.net/Sockets/download.html" rel="nofollow">http://www.alhem.net/Sockets/download.html</a></p>
<p>Hoffe ihr könnt das Projekt erstellen, vielleicht hab ich nur irgendeine falsche Einstellung....<br />
Mfg S.W.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148452/socket-klasse-kompillieren</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 10:35:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148452.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 May 2006 18:48:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Socket Klasse kompillieren on Fri, 26 May 2006 18:48:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe heute versucht, eine Bibliothek für Sockets zu kompillieren, die unter Windows und Linux funktionieren soll. Leider funktioniert das kompillieren nicht richtig. Unter Linux funktioniert es, aber unter Windows klappt es nicht.<br />
Wenn ich das Projekt kompilliern will (egal ob mit Dev-C oder Visual Studio) funktioniert das erstellen der Bibliothek einwandfrei. Allerdings, sobald ich dann das Testprogramm kompillieren will, funktioniert es nicht. Es gibt eine Reihe von &quot;undefined reference to xy&quot;. Schafft es von euch jemand, das Projekt zu kompillieren?</p>
<p>Auf folgendes müsst ihr achten:<br />
1. Beim Testprogramm werden alle includes mit #include &lt;xyz.h&gt; eingebunden. Die müsst ihr aber mit #include &quot;xyz.h&quot; einbinden, weil ihr ja die Dateien nicht in eurem Include-Verzeichnis habt.<br />
2. OpenSSL-Unterstützung deaktivieren<br />
Microsoft Visual Studio:<br />
unter den Projekteinstellungen:<br />
C++&gt; Preprocessor &gt; Preprocessor Definitions:HAVE_OPENSSL löschen<br />
Project Properties&gt;Librarian&gt;General&gt;Additional Dependencies: libeay32.lib ssleay32.lib<br />
Dev-C:<br />
Projekt-Optionen&gt;Parameter<br />
-DHAVE_OPENSSL löschen<br />
und unter Linker libeay32.a ssleay32.a löschen<br />
3. Überprüfen ob ihr auch die richtige Bibliothek linkt, ist nämlich falsch eingestellt am Anfang.</p>
<p>So und nun dir URL zur Bibliothek:<br />
<a href="http://www.alhem.net/Sockets/download.html" rel="nofollow">http://www.alhem.net/Sockets/download.html</a></p>
<p>Hoffe ihr könnt das Projekt erstellen, vielleicht hab ich nur irgendeine falsche Einstellung....<br />
Mfg S.W.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065754</guid><dc:creator><![CDATA[XCooperation]]></dc:creator><pubDate>Fri, 26 May 2006 18:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to Socket Klasse kompillieren on Fri, 26 May 2006 19:01:28 GMT]]></title><description><![CDATA[<p>libws2_32.a</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065760</guid><dc:creator><![CDATA[...........]]></dc:creator><pubDate>Fri, 26 May 2006 19:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to Socket Klasse kompillieren on Fri, 26 May 2006 19:35:47 GMT]]></title><description><![CDATA[<p>Nein, das hätte ich schon gemerkt. Die Fehler beziehen sich auf die Klassen der Bibliothek:</p>
<pre><code>Compiler: Default compiler
Building Makefile: &quot;C:\Dev-Cpp\Projects\Socket_Class_ZIP\DevCpp\Makefile.win&quot;
Führt  make clean aus
rm -f bin/sockets_test.o  ../../bin/Test.exe

g++.exe -c ../sockets_test.cpp -o bin/sockets_test.o -I&quot;C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2/backward&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2/mingw32&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2&quot;  -I&quot;C:/Dev-Cpp/include&quot;  -I&quot;..&quot;    

g++.exe bin/sockets_test.o  -o &quot;..\..\bin\Test.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -L&quot;C:/OpenSSL/lib/MinGW&quot; Sockets.a ../../../lib/libws2_32.a  

bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0x9c):sockets_test.cpp: undefined reference to `HttpClientSocket::OnFirst()'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa0):sockets_test.cpp: undefined reference to `HttpClientSocket::OnHeader(std::string const&amp;, std::string const&amp;)'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa4):sockets_test.cpp: undefined reference to `HttpClientSocket::OnHeaderComplete()'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa8):sockets_test.cpp: undefined reference to `HttpClientSocket::OnData(char const*, unsigned int)'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xb4):sockets_test.cpp: undefined reference to `HttpClientSocket::OnContent()'
Sockets.a(HttpGetSocket.o)(.text+0x14):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x38):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xa2):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;, std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xd6):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xeb):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0xff):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x35b):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x3f6):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;, std::string const&amp;)'

Sockets.a(HttpGetSocket.o)(.text+0x42a):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x43f):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x453):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x6af):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x74d):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x793):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x9fa):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xa99):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xadf):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xd46):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xd9e):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xdd2):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xe06):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x1421):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x1436):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x145d):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x149c):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x16bd):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0x9c):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnFirst()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa0):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnHeader(std::string const&amp;, std::string const&amp;)'

Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa4):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnHeaderComplete()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa8):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnData(char const*, unsigned int)'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xb4):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnContent()'
collect2: ld returned 1 exit status

make.exe: *** [../../bin/Test.exe] Error 1

Ausführung beendet
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1065780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065780</guid><dc:creator><![CDATA[XCooperation]]></dc:creator><pubDate>Fri, 26 May 2006 19:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to Socket Klasse kompillieren on Tue, 30 May 2006 11:23:14 GMT]]></title><description><![CDATA[<p>There's a file missing from the Project file for DevCpp, and that file is HttpClientSocket.cpp.<br />
If you add that to the project it will all work out.</p>
<p>XCooperation schrieb:</p>
<blockquote>
<p>Nein, das hätte ich schon gemerkt. Die Fehler beziehen sich auf die Klassen der Bibliothek:</p>
<pre><code>Compiler: Default compiler
Building Makefile: &quot;C:\Dev-Cpp\Projects\Socket_Class_ZIP\DevCpp\Makefile.win&quot;
Führt  make clean aus
rm -f bin/sockets_test.o  ../../bin/Test.exe

g++.exe -c ../sockets_test.cpp -o bin/sockets_test.o -I&quot;C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2/backward&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2/mingw32&quot;  -I&quot;C:/Dev-Cpp/include/c++/3.4.2&quot;  -I&quot;C:/Dev-Cpp/include&quot;  -I&quot;..&quot;    

g++.exe bin/sockets_test.o  -o &quot;..\..\bin\Test.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -L&quot;C:/OpenSSL/lib/MinGW&quot; Sockets.a ../../../lib/libws2_32.a  

bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0x9c):sockets_test.cpp: undefined reference to `HttpClientSocket::OnFirst()'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa0):sockets_test.cpp: undefined reference to `HttpClientSocket::OnHeader(std::string const&amp;, std::string const&amp;)'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa4):sockets_test.cpp: undefined reference to `HttpClientSocket::OnHeaderComplete()'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xa8):sockets_test.cpp: undefined reference to `HttpClientSocket::OnData(char const*, unsigned int)'
bin/sockets_test.o(.rdata$_ZTV7hSocket[vtable for hSocket]+0xb4):sockets_test.cpp: undefined reference to `HttpClientSocket::OnContent()'
Sockets.a(HttpGetSocket.o)(.text+0x14):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x38):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xa2):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;, std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xd6):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xeb):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0xff):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x35b):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x3f6):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;, std::string const&amp;)'

Sockets.a(HttpGetSocket.o)(.text+0x42a):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x43f):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x453):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x6af):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x74d):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x793):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0x9fa):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xa99):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::HttpClientSocket(SocketHandler&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xadf):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::SetFilename(std::string const&amp;)'
Sockets.a(HttpGetSocket.o)(.text+0xd46):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xd9e):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xdd2):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0xe06):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::~HttpClientSocket()'
Sockets.a(HttpGetSocket.o)(.text+0x1421):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x1436):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x145d):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlPort()'
Sockets.a(HttpGetSocket.o)(.text+0x149c):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.text+0x16bd):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::GetUrlHost()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0x9c):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnFirst()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa0):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnHeader(std::string const&amp;, std::string const&amp;)'

Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa4):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnHeaderComplete()'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xa8):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnData(char const*, unsigned int)'
Sockets.a(HttpGetSocket.o)(.rdata$_ZTV13HttpGetSocket[vtable for HttpGetSocket]+0xb4):HttpGetSocket.cpp: undefined reference to `HttpClientSocket::OnContent()'
collect2: ld returned 1 exit status

make.exe: *** [../../bin/Test.exe] Error 1

Ausführung beendet
</code></pre>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1067974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1067974</guid><dc:creator><![CDATA[grymse]]></dc:creator><pubDate>Tue, 30 May 2006 11:23:14 GMT</pubDate></item></channel></rss>