Hello, when i try to compile a winsock code i get following error
Here is the full error:
||=== client, Debug ===|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c||In function 'main':|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c|24|error: 'sockaddr_in' undeclared (first use in this function)|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c|24|error: (Each undeclared identifier is reported only once|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c|24|error: for each function it appears in.)|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c|24|error: expected ';' before 'client'|
C:\Documents and Settings\HarishAdmin\My Documents\harish\main.c|25|error: 'client' undeclared (first use in this function)|
||=== Build finished: 5 errors, 2 warnings ===|
i linked the libws2_32.a and even the libwsock32.a
but still it keeps showing the problem
and yes the code is correct i check it in my MSVC
please help me.Thanks!