Typische Fehlermeldungen:

error: using typedef-name 'fd_set' after 'struct'
   45 |             struct fd_set _fdsRead;
      |                    ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from /usr/include/x86_64-linux-gnu/bits/socket.h:29,
                 from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
                 from ...
/usr/include/x86_64-linux-gnu/sys/select.h:70:5: note: 'fd_set' has a previous declaration here
   70 |   } fd_set;
      |     ^~~~~~

Der Fehler ensteht auf Linux Systemen mit dem Compiler gcc/g++. Er kann gelöst werden in dem man folgenden Definition in seinem Code ändern:

struct fd_set _fdsRead;

Zu:

fd_set _fdsRead;

In unserer Tests funktioniert der Build danach weiterhin auf Windows und Linux.

Tags

2 Responses

    • Hey!
      Thank your for the message. I’ve found our mistake, just remove the keyword „struct“ befor fd_set. I’ve updated our example.
      If you need any help, feel free to text us!

      Best regards,
      Lucas

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert