[Solved] How to track down the cause of “syntax error: missing ‘)’ before identifier” and others? [closed]


Alternatively to what’s suggested here, you fix the problem in the header file without actually moving the definition of PCLIENT into the header:

...
struct _client;
...
// Accept Client.
BOOL AcceptClient(struct _client* current_client);
...
// Receive data from client.
BOOL recv_data(struct _client* current_client, char *buffer, int size);
...
// Send data.
BOOL send_data(struct _client* current_client, char *buffer, int size);
// Disconnect Client.
VOID disconnect_client(struct _client* current_client);
...

1

solved How to track down the cause of “syntax error: missing ‘)’ before identifier” and others? [closed]