[so] [Tema 5][Windows] Compilare http parser
Mihai Barbulescu
b12mihai at gmail.com
Sun May 12 12:11:38 EEST 2013
On 12 May 2013 11:21, Mihai Barbulescu <b12mihai at gmail.com> wrote:
>
> I-am facut lui addrlen cast la (int *) si a mers, insa sunt curios daca asta va influenta comportamentul functiei.
Am si alte erori tot din cauza cast-urilor, sper ca daca le fac cast
ca sa nu mai bazaie compilatorul (desi compilez cu
-D_CRT_SECURE_NO_DEPRECATE) nu va avea vreo influenta asupra modului
in care lucreaza functia.
iocp_util.c(30) : error C2440: 'initializing' : cannot convert from
'void *' to 'connection *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
iocp_util.c(131) : error C2664: 'WSAGetOverlappedResult' : cannot
convert parameter 3 from 'size_t *' to 'LPDWORD'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
iocp_util.c(163) : error C2664: 'AcceptEx' : cannot convert parameter
7 from 'size_t *' to 'LPDWORD'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
iocp_util.c(195) : error C3861: 'w_iocp_add_key': identifier not found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
10.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
iocp_util.c reprezinta functiile din exemplul de la care ni s-a
sugerat sa pornim in Windows - iocp_echo_server.
--
Cu stimă,
Mihai Bărbulescu
More information about the so
mailing list