G
Guest
Hello Developers,
I use VC++ .NET v2003. By using Windows Forms .NET, I am developing an
application which will work with TCP/IP functions. I can Build my application
in Debug Mode normally, but, whenever I want to Build at Release Mode,
compiler gives LNK2001, LNK2019 ve LNK1120 errors. I read the MSDN documents,
unfortunately, I could not solve my problem. I am requesting your help.
All errors are below with my application name "TestFace_v2"
1)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
closesocket(unsigned int)" (?closesocket@@$$J14YGHI@Z)
2)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
connect(unsigned int,struct sockaddr const *,int)"
(?connect@@$$J212YGHIPBUsockaddr@@H@Z)
3)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z)
4)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z)
5)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
send(unsigned int,char const *,int,int)" (?send@@$$J216YGHIPBDHH@Z)
6)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
setsockopt(unsigned int,int,int,char const *,int)"
(?setsockopt@@$$J220YGHIHHPBDH@Z)
7)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
WSAGetLastError(void)" (?WSAGetLastError@@$$J10YGHXZ)
8)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
WSAStartup(unsigned short,struct WSAData *)"
(?WSAStartup@@$$J18YGHGPAUWSAData@@@Z)
9)TestFace_v2 error LNK2001: unresolved external symbol "unsigned int
__stdcall socket(int,int,int)" (?socket@@$$J212YGIHHH@Z)
10)TestFace_v2 error LNK2001: unresolved external symbol "unsigned long
__stdcall inet_addr(char const *)" (?inet_addr@@$$J14YGKPBD@Z)
11)TestFace_v2 error LNK2001: unresolved external symbol "unsigned short
__stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z)
12)TestFace_v2 error LNK2019: unresolved external symbol "int __stdcall
WSAGetLastError(void)" (?WSAGetLastError@@$$J10YGHXZ) referenced in function
"public: __clrcall
TestFace_v2::frmConnectionSettings::frmConnectionSettings(void)__gc "
(??0frmConnectionSettings@TestFace_v2@@$$FQ$AAM@XZ)
13)TestFace_v2 fatal error LNK1120: 10 unresolved externals
I use VC++ .NET v2003. By using Windows Forms .NET, I am developing an
application which will work with TCP/IP functions. I can Build my application
in Debug Mode normally, but, whenever I want to Build at Release Mode,
compiler gives LNK2001, LNK2019 ve LNK1120 errors. I read the MSDN documents,
unfortunately, I could not solve my problem. I am requesting your help.
All errors are below with my application name "TestFace_v2"
1)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
closesocket(unsigned int)" (?closesocket@@$$J14YGHI@Z)
2)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
connect(unsigned int,struct sockaddr const *,int)"
(?connect@@$$J212YGHIPBUsockaddr@@H@Z)
3)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z)
4)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
recv(unsigned int,char *,int,int)" (?recv@@$$J216YGHIPADHH@Z)
5)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
send(unsigned int,char const *,int,int)" (?send@@$$J216YGHIPBDHH@Z)
6)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
setsockopt(unsigned int,int,int,char const *,int)"
(?setsockopt@@$$J220YGHIHHPBDH@Z)
7)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
WSAGetLastError(void)" (?WSAGetLastError@@$$J10YGHXZ)
8)TestFace_v2 error LNK2001: unresolved external symbol "int __stdcall
WSAStartup(unsigned short,struct WSAData *)"
(?WSAStartup@@$$J18YGHGPAUWSAData@@@Z)
9)TestFace_v2 error LNK2001: unresolved external symbol "unsigned int
__stdcall socket(int,int,int)" (?socket@@$$J212YGIHHH@Z)
10)TestFace_v2 error LNK2001: unresolved external symbol "unsigned long
__stdcall inet_addr(char const *)" (?inet_addr@@$$J14YGKPBD@Z)
11)TestFace_v2 error LNK2001: unresolved external symbol "unsigned short
__stdcall htons(unsigned short)" (?htons@@$$J14YGGG@Z)
12)TestFace_v2 error LNK2019: unresolved external symbol "int __stdcall
WSAGetLastError(void)" (?WSAGetLastError@@$$J10YGHXZ) referenced in function
"public: __clrcall
TestFace_v2::frmConnectionSettings::frmConnectionSettings(void)__gc "
(??0frmConnectionSettings@TestFace_v2@@$$FQ$AAM@XZ)
13)TestFace_v2 fatal error LNK1120: 10 unresolved externals