Menu

Problems winth winsock and winsock2

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

    [Linker error] undefined reference to `WSAStartup@8'
    [Linker error] undefined reference to `socket@12'
    [Linker error] undefined reference to `htons@4'
    [Linker error] undefined reference to `bind@12'
    [Linker error] undefined reference to `listen@8'
    [Linker error] undefined reference to `accept@12'
    [Linker error] undefined reference to `inet_ntoa@4'

     
    • Nobody/Anonymous

      "-lwsock32" is for what?????? (Answer of the question.)

       
    • Nobody/Anonymous

      Or you can try -lws2_32

      Kip

       
    • Nobody/Anonymous

      Hi
          Please Change your Project Option Like This.
      Press ALT+P and Fill the Like And Object Option like this "C:\Dev-C++\Lib\libwsock32.a".
                                                                   

       

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.