1>winsock.cpp(108): error C2664: 'lstrlenW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast |
|
|
|
|
1>winsock.obj : error LNK2028: unresolved token (0A000349) "extern "C" int __stdcall WSACleanup(void)" (?WSACleanup@@$$J10YGHXZ) referenced in function "int __cdecl main(int,char * * const)" (?main@@$$HYAHHQAPAD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A00034A) "extern "C" int __stdcall WSAStartup(unsigned short,struct WSAData *)" (?WSAStartup@@$$J18YGHGPAUWSAData@@@Z) referenced in function "int __cdecl main(int,char * * const)" (?main@@$$HYAHHQAPAD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A00034B) "extern "C" int __stdcall closesocket(unsigned int)" (?closesocket@@$$J14YGHI@Z) referenced in function __catch$?RequestHeaders@@$$FYA_NPBD@Z$0 1>winsock.obj : error LNK2028: unresolved token (0A00034D) "extern "C" int __stdcall recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A00034E) "extern "C" int __stdcall send(unsigned int,char const *,int,int)" (?send@@$$J216YGHIPBDHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A00034F) "extern "C" int __stdcall connect(unsigned int,struct sockaddr const *,int)" (?connect@@$$J212YGHIPBUsockaddr@@H@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A000350) "extern "C" char * __stdcall inet_ntoa(struct in_addr)" (?inet_ntoa@@$$J14YGPADUin_addr@@@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A000351) "extern "C" unsigned int __stdcall socket(int,int,int)" (?socket@@$$J212YGIHHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2028: unresolved token (0A000353) "extern "C" unsigned short __stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z) referenced in function "void __cdecl FillSockAddr(struct sockaddr_in *,char const *,int)" (?FillSockAddr@@$$FYAXPAUsockaddr_in@@PBDH@Z) 1>winsock.obj : error LNK2028: unresolved token (0A000354) "extern "C" struct hostent * __stdcall gethostbyname(char const *)" (?gethostbyname@@$$J14YGPAUhostent@@PBD@Z) referenced in function "unsigned long __cdecl FindHostIP(char const *)" (?FindHostIP@@$$FYAKPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" struct hostent * __stdcall gethostbyname(char const *)" (?gethostbyname@@$$J14YGPAUhostent@@PBD@Z) referenced in function "unsigned long __cdecl FindHostIP(char const *)" (?FindHostIP@@$$FYAKPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" unsigned short __stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z) referenced in function "void __cdecl FillSockAddr(struct sockaddr_in *,char const *,int)" (?FillSockAddr@@$$FYAXPAUsockaddr_in@@PBDH@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall closesocket(unsigned int)" (?closesocket@@$$J14YGHI@Z) referenced in function __catch$?RequestHeaders@@$$FYA_NPBD@Z$0 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall send(unsigned int,char const *,int,int)" (?send@@$$J216YGHIPBDHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall connect(unsigned int,struct sockaddr const *,int)" (?connect@@$$J212YGHIPBUsockaddr@@H@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" char * __stdcall inet_ntoa(struct in_addr)" (?inet_ntoa@@$$J14YGPADUin_addr@@@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" unsigned int __stdcall socket(int,int,int)" (?socket@@$$J212YGIHHH@Z) referenced in function "bool __cdecl RequestHeaders(char const *)" (?RequestHeaders@@$$FYA_NPBD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall WSACleanup(void)" (?WSACleanup@@$$J10YGHXZ) referenced in function "int __cdecl main(int,char * * const)" (?main@@$$HYAHHQAPAD@Z) 1>winsock.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall WSAStartup(unsigned short,struct WSAData *)" (?WSAStartup@@$$J18YGHGPAUWSAData@@@Z) referenced in function "int __cdecl main(int,char * * const)" (?main@@$$HYAHHQAPAD@Z) 1>C:\Users\Main\documents\visual studio 2010\Projects\winsock\Debug\winsock.exe : fatal error LNK1120: 20 unresolved externals |