<?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[Kompilierungsproblem]]></title><description><![CDATA[<p>Ich habe ein Problem!<br />
Ich habe Visual C++ 6, und kann folgenden Quellcode nicht kompilieren:<br />
Der Fehler:<br />
&quot;X:\selectchatsrv.cpp(131) : error C2065: 'ADDR_ANY' : nichtdeklarierter Bezeichner&quot;</p>
<pre><code class="language-cpp">// max. Anzahl Clients
// Max. number of clients
#define MAX_CLIENTS 100

// Der Standartwert für FD_SETSIZE ist 64, dieser kann aber verändert
// werden indem man FD_SETSIZE auf einen anderen Wert setzt bevor man
// winsock2.h includiert.
// FD_SETSIZE auf die max. Anzahl Clients setzten

// The default value of FD_SETSIZE is 64, which can be modified by
// defining FD_SETSIZE to another value before including Winsock2.h.
// set FD_SETSIZE to the max. number of clients
#define FD_SETSIZE   MAX_CLIENTS

// includes...
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
//#include &lt;windows.h&gt;
#include &lt;winsock.h&gt;
#include &lt;conio.h&gt;

// Stellt eine Verbindung mit einem Client dar
// Represents a connection with a Client
struct Connection {
   Connection() {
      used=false;
      socket=INVALID_SOCKET;
   }
   void set(SOCKET s, SOCKADDR_IN addr) {
      this-&gt;socket=s;
      this-&gt;addr=addr;
      this-&gt;used=true;
   }
   void erase() {
      this-&gt;used=false;
      this-&gt;socket=INVALID_SOCKET;
   }
   bool used;   // connection benutzt ? / connection slot used ?
   SOCKET socket; // socket
   SOCKADDR_IN addr; // client addr
};

// clients
Connection clients[MAX_CLIENTS];

// Sucht den nächsten freien Platz im clients Array
// -1 = kein platz frei
// Searches the next free slot in the clients array
// -1 = no free slot
int getFreeClientSlot() {
   for(int i=0;i&lt;MAX_CLIENTS;i++) {
      if(clients[i].used==false)
         return i;
   }
   return -1;
}

// Sendet eine Nachricht an alle Clients
// Send's a Message to all clients
int sendToAllClients(char* msg) {
   int rc,i;
   for(i=0;i&lt;MAX_CLIENTS;i++) {
      if(!clients[i].used)
         continue;
      rc=send(clients[i].socket,msg,strlen(msg),0);
      if(rc==SOCKET_ERROR) {
         printf(&quot;Error: Sending to Client %d failed: %d\n&quot;,i,WSAGetLastError());
      }
   }
   return 0;
}

// Startet Winsock und gibt einige Infos zur Version aus
// Starts winsock and dumps some infos about the version
int startWinsock() {
   int rc;
   WSADATA wsaData;
   rc=WSAStartup(MAKEWORD(2,0),&amp;wsaData);
   printf(&quot;Return Code: %d\n&quot;,rc);
   if(rc==SOCKET_ERROR) {
      printf(&quot;Error, exiting!\n&quot;);
      return rc;
   }
   printf(&quot;Winsock started:\n&quot;);
   printf(&quot;Version: %d.%d\n&quot;,LOBYTE(wsaData.wVersion),HIBYTE(wsaData.wVersion));
   printf(&quot;High Version: %d.%d\n&quot;,LOBYTE(wsaData.wHighVersion),HIBYTE(wsaData.wHighVersion));
   printf(&quot;Description: %s\n&quot;,wsaData.szDescription);
   printf(&quot;System Status: %s\n&quot;,wsaData.szSystemStatus);
   return 0;
}

// main...
int main() {
   // SOCKET welcher neue Verbindungen annimmt
   // SOCKET which accepts new connections
   SOCKET acceptSocket;
   SOCKADDR_IN addr;
   int rc,addrsize=sizeof(SOCKADDR_IN);
   unsigned int i,j;
   // fd_set
   fd_set fdSetRead;
   // timout für select() / timeout for select()
   timeval selectTimeout;
   // temporär benutz für neue verbindungen
   // temporary used for new connections
   Connection newConnection;
   // buffer
   char buf[1024];

   // clients array leeren / clear clients array
   memset(clients,0x0,sizeof(Connection)*MAX_CLIENTS);

   // start winsock
   rc=startWinsock();
   if(rc==SOCKET_ERROR)
      return 1;

   // socket erstellen / create socket
   acceptSocket=socket(PF_INET,SOCK_STREAM,0);
   if(acceptSocket==INVALID_SOCKET) {
      printf(&quot;Error, cannot create socket: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // sockt an port 1234 binden / bind socket to port 1234
   memset(&amp;addr,0,sizeof(SOCKADDR_IN));
   addr.sin_family=AF_INET;
   addr.sin_port=htons(1234);
   addr.sin_addr.s_addr=ADDR_ANY;
   rc=bind(acceptSocket,(SOCKADDR*)&amp;addr,sizeof(SOCKADDR_IN));
    if(rc==SOCKET_ERROR) {
      printf(&quot;Error, bind() failed: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // auf verbindungen warten / listen for connections
   rc=listen(acceptSocket,10);
   if(rc==SOCKET_ERROR) {
      printf(&quot;Error,listen() failed: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // The parameter readfds identifies the sockets that are to be checked for readability.
   // If the socket is currently in the listen state, it will be marked as readable if an
   // incoming connection request has been received such that an accept is guaranteed to
   // complete without blocking.

   while(1) {

      // fd_set leeren / clear fd_set
      FD_ZERO(&amp;fdSetRead);

      // den socket welcher verbindungen annimmt hinzufügen
      // add the SOCKET which accepts new connections

      FD_SET(acceptSocket,&amp;fdSetRead);
      // alle clients hinzufügen
      // add all clients
      for(i=0;i&lt;MAX_CLIENTS;i++) {
         if(clients[i].used)
            FD_SET(clients[i].socket,&amp;fdSetRead);
      }

      // warten bis irgend ein socket bereit ist, wenn timout NULL ist kehrt select()
      // erst zurück wenn ein socket bereit ist, select() blockt also in diesem falle
      // wait until any socket is ready (timeout = NULL, block until one socket is ready)
      rc=select(0,&amp;fdSetRead,NULL,NULL,NULL);

      // abbrechen bei einem fehler
      // break on error
      if(rc&lt;1)
         break;

      printf(&quot;select() returned %d ready sockets\n&quot;,rc);

      for(i=0;i&lt;fdSetRead.fd_count;i++) {

         // acceptSocket ?
         if(fdSetRead.fd_array[i]==acceptSocket) {
            // verbindung annehmen / accept new connection
            newConnection.socket=accept(acceptSocket,(SOCKADDR*)&amp;newConnection.addr,&amp;addrsize);
            rc=getFreeClientSlot();
            if(rc==-1) {
               printf(&quot;Cannot accept new clients\n&quot;);
               continue;
            }
            // zu den clients hinzufügen
            // add to clients
            clients[rc]=newConnection;
            clients[rc].used=true;
            printf(&quot;New Client accepted from %s\n&quot;,inet_ntoa(newConnection.addr.sin_addr));
            continue;
         }

         // ein client ?
         // a client ?
         for(j=0;j&lt;MAX_CLIENTS;j++) {
            if(!clients[j].used)
               continue;

            if(clients[j].socket==fdSetRead.fd_array[i]) {
               rc=recv(clients[j].socket,buf,1023,0);
               buf[rc]='\0';
               // rc==0 =&gt; client hat die verbindung beendet
               // rc==0 =&gt; client closed connection
               if(rc==0) {
                  printf(&quot;Client %d (%s): closed connection\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr));
                  closesocket(clients[j].socket);
                  clients[j].erase();
                  continue;
               // rc==SOCKET_ERROR =&gt; fehler, verbindung beenden!
               // rc==SOCKET_ERROR =&gt; error, close connection!
               } else if(rc==SOCKET_ERROR) {
                  printf(&quot;Client %d (%s): Error %d\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr),WSAGetLastError());
                    printf(&quot;Client %d (%s): Server aborts connection\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr));
                  closesocket(clients[j].socket);
                  clients[j].erase();
                  continue;
               // daten empfangen und an alle clients senden
               // receive data and send it to all clients
               } else {
                  printf(&quot;Client %d (%s): received '%s' \n&quot;,j,inet_ntoa(clients[j].addr.sin_addr),buf);
                  sendToAllClients(buf);
               }
            }
         }
      }
   }

   // aufräumen
   // cleanup
   closesocket(acceptSocket);
   WSACleanup();
   printf(&quot;Server shutdown, press any key to exit\n&quot;);
   getch();
}
</code></pre>
<p>MfG,<br />
C++ Core</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/92596/kompilierungsproblem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 21:01:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/92596.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Nov 2004 23:42:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kompilierungsproblem on Sat, 20 Nov 2004 23:42:19 GMT]]></title><description><![CDATA[<p>Ich habe ein Problem!<br />
Ich habe Visual C++ 6, und kann folgenden Quellcode nicht kompilieren:<br />
Der Fehler:<br />
&quot;X:\selectchatsrv.cpp(131) : error C2065: 'ADDR_ANY' : nichtdeklarierter Bezeichner&quot;</p>
<pre><code class="language-cpp">// max. Anzahl Clients
// Max. number of clients
#define MAX_CLIENTS 100

// Der Standartwert für FD_SETSIZE ist 64, dieser kann aber verändert
// werden indem man FD_SETSIZE auf einen anderen Wert setzt bevor man
// winsock2.h includiert.
// FD_SETSIZE auf die max. Anzahl Clients setzten

// The default value of FD_SETSIZE is 64, which can be modified by
// defining FD_SETSIZE to another value before including Winsock2.h.
// set FD_SETSIZE to the max. number of clients
#define FD_SETSIZE   MAX_CLIENTS

// includes...
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
//#include &lt;windows.h&gt;
#include &lt;winsock.h&gt;
#include &lt;conio.h&gt;

// Stellt eine Verbindung mit einem Client dar
// Represents a connection with a Client
struct Connection {
   Connection() {
      used=false;
      socket=INVALID_SOCKET;
   }
   void set(SOCKET s, SOCKADDR_IN addr) {
      this-&gt;socket=s;
      this-&gt;addr=addr;
      this-&gt;used=true;
   }
   void erase() {
      this-&gt;used=false;
      this-&gt;socket=INVALID_SOCKET;
   }
   bool used;   // connection benutzt ? / connection slot used ?
   SOCKET socket; // socket
   SOCKADDR_IN addr; // client addr
};

// clients
Connection clients[MAX_CLIENTS];

// Sucht den nächsten freien Platz im clients Array
// -1 = kein platz frei
// Searches the next free slot in the clients array
// -1 = no free slot
int getFreeClientSlot() {
   for(int i=0;i&lt;MAX_CLIENTS;i++) {
      if(clients[i].used==false)
         return i;
   }
   return -1;
}

// Sendet eine Nachricht an alle Clients
// Send's a Message to all clients
int sendToAllClients(char* msg) {
   int rc,i;
   for(i=0;i&lt;MAX_CLIENTS;i++) {
      if(!clients[i].used)
         continue;
      rc=send(clients[i].socket,msg,strlen(msg),0);
      if(rc==SOCKET_ERROR) {
         printf(&quot;Error: Sending to Client %d failed: %d\n&quot;,i,WSAGetLastError());
      }
   }
   return 0;
}

// Startet Winsock und gibt einige Infos zur Version aus
// Starts winsock and dumps some infos about the version
int startWinsock() {
   int rc;
   WSADATA wsaData;
   rc=WSAStartup(MAKEWORD(2,0),&amp;wsaData);
   printf(&quot;Return Code: %d\n&quot;,rc);
   if(rc==SOCKET_ERROR) {
      printf(&quot;Error, exiting!\n&quot;);
      return rc;
   }
   printf(&quot;Winsock started:\n&quot;);
   printf(&quot;Version: %d.%d\n&quot;,LOBYTE(wsaData.wVersion),HIBYTE(wsaData.wVersion));
   printf(&quot;High Version: %d.%d\n&quot;,LOBYTE(wsaData.wHighVersion),HIBYTE(wsaData.wHighVersion));
   printf(&quot;Description: %s\n&quot;,wsaData.szDescription);
   printf(&quot;System Status: %s\n&quot;,wsaData.szSystemStatus);
   return 0;
}

// main...
int main() {
   // SOCKET welcher neue Verbindungen annimmt
   // SOCKET which accepts new connections
   SOCKET acceptSocket;
   SOCKADDR_IN addr;
   int rc,addrsize=sizeof(SOCKADDR_IN);
   unsigned int i,j;
   // fd_set
   fd_set fdSetRead;
   // timout für select() / timeout for select()
   timeval selectTimeout;
   // temporär benutz für neue verbindungen
   // temporary used for new connections
   Connection newConnection;
   // buffer
   char buf[1024];

   // clients array leeren / clear clients array
   memset(clients,0x0,sizeof(Connection)*MAX_CLIENTS);

   // start winsock
   rc=startWinsock();
   if(rc==SOCKET_ERROR)
      return 1;

   // socket erstellen / create socket
   acceptSocket=socket(PF_INET,SOCK_STREAM,0);
   if(acceptSocket==INVALID_SOCKET) {
      printf(&quot;Error, cannot create socket: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // sockt an port 1234 binden / bind socket to port 1234
   memset(&amp;addr,0,sizeof(SOCKADDR_IN));
   addr.sin_family=AF_INET;
   addr.sin_port=htons(1234);
   addr.sin_addr.s_addr=ADDR_ANY;
   rc=bind(acceptSocket,(SOCKADDR*)&amp;addr,sizeof(SOCKADDR_IN));
    if(rc==SOCKET_ERROR) {
      printf(&quot;Error, bind() failed: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // auf verbindungen warten / listen for connections
   rc=listen(acceptSocket,10);
   if(rc==SOCKET_ERROR) {
      printf(&quot;Error,listen() failed: %d\n&quot;,WSAGetLastError());
      return 1;
   }

   // The parameter readfds identifies the sockets that are to be checked for readability.
   // If the socket is currently in the listen state, it will be marked as readable if an
   // incoming connection request has been received such that an accept is guaranteed to
   // complete without blocking.

   while(1) {

      // fd_set leeren / clear fd_set
      FD_ZERO(&amp;fdSetRead);

      // den socket welcher verbindungen annimmt hinzufügen
      // add the SOCKET which accepts new connections

      FD_SET(acceptSocket,&amp;fdSetRead);
      // alle clients hinzufügen
      // add all clients
      for(i=0;i&lt;MAX_CLIENTS;i++) {
         if(clients[i].used)
            FD_SET(clients[i].socket,&amp;fdSetRead);
      }

      // warten bis irgend ein socket bereit ist, wenn timout NULL ist kehrt select()
      // erst zurück wenn ein socket bereit ist, select() blockt also in diesem falle
      // wait until any socket is ready (timeout = NULL, block until one socket is ready)
      rc=select(0,&amp;fdSetRead,NULL,NULL,NULL);

      // abbrechen bei einem fehler
      // break on error
      if(rc&lt;1)
         break;

      printf(&quot;select() returned %d ready sockets\n&quot;,rc);

      for(i=0;i&lt;fdSetRead.fd_count;i++) {

         // acceptSocket ?
         if(fdSetRead.fd_array[i]==acceptSocket) {
            // verbindung annehmen / accept new connection
            newConnection.socket=accept(acceptSocket,(SOCKADDR*)&amp;newConnection.addr,&amp;addrsize);
            rc=getFreeClientSlot();
            if(rc==-1) {
               printf(&quot;Cannot accept new clients\n&quot;);
               continue;
            }
            // zu den clients hinzufügen
            // add to clients
            clients[rc]=newConnection;
            clients[rc].used=true;
            printf(&quot;New Client accepted from %s\n&quot;,inet_ntoa(newConnection.addr.sin_addr));
            continue;
         }

         // ein client ?
         // a client ?
         for(j=0;j&lt;MAX_CLIENTS;j++) {
            if(!clients[j].used)
               continue;

            if(clients[j].socket==fdSetRead.fd_array[i]) {
               rc=recv(clients[j].socket,buf,1023,0);
               buf[rc]='\0';
               // rc==0 =&gt; client hat die verbindung beendet
               // rc==0 =&gt; client closed connection
               if(rc==0) {
                  printf(&quot;Client %d (%s): closed connection\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr));
                  closesocket(clients[j].socket);
                  clients[j].erase();
                  continue;
               // rc==SOCKET_ERROR =&gt; fehler, verbindung beenden!
               // rc==SOCKET_ERROR =&gt; error, close connection!
               } else if(rc==SOCKET_ERROR) {
                  printf(&quot;Client %d (%s): Error %d\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr),WSAGetLastError());
                    printf(&quot;Client %d (%s): Server aborts connection\n&quot;,j,inet_ntoa(clients[j].addr.sin_addr));
                  closesocket(clients[j].socket);
                  clients[j].erase();
                  continue;
               // daten empfangen und an alle clients senden
               // receive data and send it to all clients
               } else {
                  printf(&quot;Client %d (%s): received '%s' \n&quot;,j,inet_ntoa(clients[j].addr.sin_addr),buf);
                  sendToAllClients(buf);
               }
            }
         }
      }
   }

   // aufräumen
   // cleanup
   closesocket(acceptSocket);
   WSACleanup();
   printf(&quot;Server shutdown, press any key to exit\n&quot;);
   getch();
}
</code></pre>
<p>MfG,<br />
C++ Core</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655896</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sat, 20 Nov 2004 23:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 00:56:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>du bist im falschen Forum (das ist <strong>kein</strong> MFC-Programm), aber trotzdem: includiere WINSOCK2.H statt winsock.h, oder verwende INADDR_ANY statt ADDR_ANY (aber ersteres ist vorzuziehen).</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655909</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Sun, 21 Nov 2004 00:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 01:30:48 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=709" rel="nofollow">dEUs</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC mit dem Visual C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/655915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655915</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 21 Nov 2004 01:30:48 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 02:22:23 GMT]]></title><description><![CDATA[<p>Jetzt kommen die Fehler:</p>
<p>selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _WSAGetLastError@0<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _send@16<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _WSAStartup@8<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _WSACleanup@0<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _closesocket@4<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _recv@16<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _inet_ntoa@4<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _accept@12<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _select@20<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _listen@8<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _bind@12<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _htons@4<br />
selectchatsrv.obj : error LNK2001: Nichtaufgeloestes externes Symbol _socket@12</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655916</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 02:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 03:03:05 GMT]]></title><description><![CDATA[<p>dann mußt du auch noch die entsprechende Library ws2_32.lib dazulinken.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655918</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Sun, 21 Nov 2004 03:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 09:48:32 GMT]]></title><description><![CDATA[<p>Hoffentlich nerve ich nicht <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="😉"
    /><br />
habe jetzt das unter alle includes geschrieben:</p>
<pre><code class="language-cpp">#pragma comment( lib, &quot;ws2_32.lib&quot; )
</code></pre>
<p>X:\selectchatclient.cpp(32) : warning C4101: 'rc' : Unreferenzierte lokale Variable<br />
X:\selectchatsrv.cpp(108) : warning C4101: 'selectTimeout' : Unreferenzierte lokale Variable<br />
X:\selectchatsrv.cpp(242) : warning C4715: 'main' : Nicht alle Steuerelementpfade geben einen Wert zurück</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655958</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 09:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 09:59:25 GMT]]></title><description><![CDATA[<p>C++ Core schrieb:</p>
<blockquote>
<p>X:\selectchatclient.cpp(32) : warning C4101: 'rc' : Unreferenzierte lokale Variable</p>
</blockquote>
<p>Die Variable 'rc' wird zwar lokal erstellt, aber nie benutzt. Sie ist überflüssig.</p>
<p>C++ Core schrieb:</p>
<blockquote>
<p>X:\selectchatsrv.cpp(108) : warning C4101: 'selectTimeout' : Unreferenzierte lokale Variable</p>
</blockquote>
<p>Die Variable 'selectTimeout' wird zwar lokal erstellt, aber nie benutzt. Sie ist überflüssig.</p>
<p>C++ Core schrieb:</p>
<blockquote>
<p>X:\selectchatsrv.cpp(242) : warning C4715: 'main' : Nicht alle Steuerelementpfade geben einen Wert zurück</p>
</blockquote>
<p>Irgendwo wird die main-funktion beendet, gibt aber keinen Wert zurück (und bevor Du suchst: ganz am Ende fehlt ein return 0;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655960</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sun, 21 Nov 2004 09:59:25 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 11:09:51 GMT]]></title><description><![CDATA[<p>C++ Core schrieb:</p>
<blockquote>
<p>X:\selectchatsrv.cpp(242) : warning C4715: 'main' : Nicht alle Steuerelementpfade</p>
</blockquote>
<p>Erschossen gehören sie für diese unglaublichen Übersetzungen. Zum Glück hab ich's auf Englisch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655988</guid><dc:creator><![CDATA[Ringding]]></dc:creator><pubDate>Sun, 21 Nov 2004 11:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 11:32:26 GMT]]></title><description><![CDATA[<p>Danke</p>
<p>Noch ein Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Kompilieren geht, wenn ich das Programm dann starte kommt aber Error, das bind() nicht initialisiert werden kann (10048)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/655999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/655999</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 11:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 12:27:49 GMT]]></title><description><![CDATA[<p>Normalerweise darf jede Socketadresse (Protokoll, Netzwerkadresse oder Anschluss) nur jeweils einmal verwendet werden. Versuch mal einen anderen Port...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/656031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/656031</guid><dc:creator><![CDATA[normalerweise]]></dc:creator><pubDate>Sun, 21 Nov 2004 12:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 12:32:29 GMT]]></title><description><![CDATA[<p>Gleiches Problem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/656033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/656033</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 12:32:29 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 12:50:29 GMT]]></title><description><![CDATA[<p>Mit Port 99 gehts!!!!!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/656044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/656044</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 12:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 13:04:26 GMT]]></title><description><![CDATA[<p>Du hast bestimmt end viele Programme installiert die die Ports nutzen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/656051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/656051</guid><dc:creator><![CDATA[end]]></dc:creator><pubDate>Sun, 21 Nov 2004 13:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to Kompilierungsproblem on Sun, 21 Nov 2004 22:19:14 GMT]]></title><description><![CDATA[<p>Ja, ich habe so um die 10 Programme...<br />
z.B. Apache, aber das tut hier nix zur Sache</p>
<p>Habe jetzt Port 99 für Text, 100 für Dateien, 101 für Server-Befehle, die gehen alle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/656378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/656378</guid><dc:creator><![CDATA[C++ Core]]></dc:creator><pubDate>Sun, 21 Nov 2004 22:19:14 GMT</pubDate></item></channel></rss>