CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How Do I debug LNK2001 errors?

  1. #1
    Join Date
    Sep 2005
    Posts
    55

    How Do I debug LNK2001 errors?

    I keep getting the the 2 fatal errors

    "error LNK2001: unresolved external symbol ___WSAFDIsSet@8"
    "error LNK2001: unresolved external symbol __select@20"

    when I build the project. How do I debug link error since unlike syntax errors, double clicking a link error won't take you to the relevant code line.

    Thanks.

  2. #2
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496

    Re: How Do I debug LNK2001 errors?

    Look in the documentation for the WSAFDIsSet function. It should specify a header file to include and a lib file to link with. Add that lib file to your project settings.
    Har Har

  3. #3
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Re: How Do I debug LNK2001 errors?

    Search for WSAFDIsSet and detemine which library is needed for it .. and include those in the project.

    Same with select@20
    | r r| h h|d

  4. #4
    Join Date
    Sep 2005
    Posts
    55

    Re: How Do I debug LNK2001 errors?

    Thanks, I'll try that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)