Help need for the Error C6061

Hi ,
I have created a class for pinging using socket programming .
I have the function in the class .

int SetupForPing( char* host , int ttl , SOCKET& sd , socketaddr_in& dest );

but when i compile the function .
I get the following error .



1>Compiling...
1>IPSocket.cpp
error C2899: typename cannot be used outside a template declaration
error C2061: syntax error : identifier 'socketaddr_in'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int



I am using VS2005 editor .
please help ..
thanks in advance ...
typename cannot be used outside a template declaration
I don't see any typename in the code that you posted.
sorry ne555 ..
on compiling it again i only get


1
2
3
error C2061: syntax error : identifier 'socketaddr_in'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

these error ..
please help .
Thanks in advance
it might be sockaddr_in rather than socketaddr_in.
thanks guestgulkan ,...thats solved my problem
Thanks all of you...
Topic archived. No new replies allowed.