Menu

linking wsock32.lib

2002-08-09
2012-09-26
  • Nobody/Anonymous

    I need to link wsock32.lib how would I do that the #pragma comment(lib, "wsock32.lib")
    Doesn't work I know that is VC++ though. Any help?

     
    • Nobody/Anonymous

      -lwsock32 in linker options. However, don't use wsock32.dll, use ws2_32.dll instead:
      -lws2_32

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.