Menu

winsock32.lib or ws2_32.lib

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

    Where can i get these files. I would like to use winsock, but the samples i got (for windows not unix) require the linker to have these object libraries.

     
    • Anonymous

      Anonymous - 2002-06-06
       
      • Nobody/Anonymous

        there is no winsock32.lib in the /include or /lib files

         
    • Nobody/Anonymous

      They both come with dev in the /include directory. The first is for winsock, while the latter for win sock 2.

      Kip

       
    • Nobody/Anonymous

      The library in question will have a name like

      libws2_32.a

      or

      libwsock32.a

      Wayne

       
    • Nobody/Anonymous

      Note that when you link the library named ws2_32, you use:

      -lws2_32

      And that the name of the file that contains the library is

      libws2_32.a

      This is a general pattern...

      Wayne

       

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.