Debugging-Link Library Problems

Source: Internet
Author: User
Tags htons

Testproject error lnk2001: the external symbol that cannot be parsed "char * _ stdcall inet_ntoa (struct in_addr )"(? Inet_ntoa $ j14ygpaduin_addr @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "int _ stdcall BIND (unsigned int, struct sockaddr const *, INT )"(? Bind @ $ j212yghipbusockaddr @ H @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "int _ stdcall gethostname (char *, INT )"(? Gethostname $ j18yghpadh @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "int _ stdcall sendto (unsigned int, char const *, Int, Int, struct sockaddr const *, INT )"(? Sendto $ j224yghipbdhhpbusockaddr h @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "int _ stdcall setsockopt (unsigned int, Int, Int, char const *, INT )"(? Setsockopt $ j220yghihhpbdh @ Z)
Testproject error lnk2001: the external symbol "int _ stdcall wsagetlasterror (void )"(? Wsagetlasterror $ j10yghxz)
Testproject error lnk2001: the external symbol that cannot be parsed "int _ stdcall wsastartup (unsigned short, struct wsadata *)"(? Wsastartup $ j18yghgpauwsadata @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "struct hostent * _ stdcall gethostbyname (char const *)"(? Gethostbyname $ j14ygpauhostent PBD @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "unsigned int _ stdcall socket (INT, Int, INT )"(? Socket $ j212ygihhh @ Z)
Testproject error lnk2001: the external symbol that cannot be parsed "unsigned long _ stdcall inet_addr (char const *)"(? Inet_addr $ j14ygkpbd @ Z)
Testproject error lnk2001: the external symbol "unsigned short _ stdcall htons (unsigned short )"(? Htons $ j14yggg @ Z)

 

Write a broadcastProgramThe above connection error occurs. Check msdn and find the link library ws2_32.lib that setsockopt () depends on.

Not added. Method: Add project properties, connectors, inputs, and additional dependencies.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.