Skip to main content
Topic: Cannot compile revision 2791 (Read 2131 times) previous topic - next topic

Cannot compile revision 2791

When trying to compile rev 2791 I get the following error
Code: [Select]
===> CXX dataobj/network.cc
dataobj/network.cc: In function ‘SOCKET network_check_activity(int, char*, int&)’:
dataobj/network.cc:207: error: invalid conversion from ‘int*’ to ‘socklen_t*’
dataobj/network.cc:207: error:   initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’

--
debian/squeeze - gcc (Debian 4.3.4-2) 4.3.4

EDIT: Simply replacing the offending int in network.cc:207:
Code: [Select]
SOCKET s = accept(my_socket, (struct sockaddr *)&client_name, (int *)&size);
with the requested socklen_t
Code: [Select]
SOCKET s = accept(my_socket, (struct sockaddr *)&client_name, (socklen_t *)&size);
allows me to compile - but I have no idea of the implications.

 

Re: Cannot compile revision 2791

Reply #1
This results in cannot compile on windows. I added a define for this.