Hello, For some reason I get this really weird error messages when I try and compile under cygwin. I have windows XP service pack 2 with Dawn 1.60q I think is the latest one. and I get this weird error message every time:
Here is the section of code it dealing with:
I already tried adding another ( but it just gives another error message:
I don't know whats wrong but I'd really appreciate the help if anyone knows the answer.
Samael@samael-l5if2k3z ~/dawn/src
$ make
g++ -c -Wall -g -O connect.cpp -o obj/connect.o
connect.cpp: In member function `void connection_data::close_socket()':
connect.cpp:215: error: expected `)' before '{' token
make: *** [connect.o] Error 1Here is the section of code it dealing with:
/**************************************************************************/
// close the actual socket attached to a connection structure
void connection_data::close_socket()
{
logf("Closing socket %d", connected_socket);
#ifdef __CYGWIN__
// a hack to make cygwin shutdown sockets after a hotreboot
// cygwin still appears to be leaking endpoints according to
// processexplorer from sysinternals, but this atleast gets
// the socket to disconnect.
if(shutdown(connected_socket, 2)!=0
{
logf("error %d calling shutdown on socket %d.", errno, connected_socket);
}
#endif
if (closesocket(connected_socket )!=0)){
socket_error(FORMATF("connection_data::close_socket(): error calling closesocket() on socket %d",connected_socket));
}
connected_socket=0;
}
I already tried adding another ( but it just gives another error message:
Samael@samael-l5if2k3z ~/dawn/src
$ make
g++ -c -Wall -g -O connect.cpp -o obj/connect.o
connect.cpp: In member function `void connection_data::close_socket()':
connect.cpp:219: error: expected primary-expression before ')' token
connect.cpp:219: error: expected `;' before ')' token
make: *** [connect.o] Error 1I don't know whats wrong but I'd really appreciate the help if anyone knows the answer.