Menu

winsock in gcc?

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

    [Linker error] undefined reference to `WSAStartup@8'

    Help on the matter would be appreciated :)

    Thanks

     
    • Kip

      Kip - 2002-09-28

      Hi,

      Go into linker options and insert -lws2_32. Then recompile =)

      Kip

       
    • Nobody/Anonymous

      Hi Kip Warner ,

      I use Dev-C++ v. 4.9.6.0
      The problem is I do insert -lws2_32 into
      tools -> compiler options -> linker
      This do not change the makefile
      (of course, as result there's always the
      [Linker error] undefined reference to `WSAStartup@8')

      Is it the bug of this version?

       
    • Nobody/Anonymous

      hi,

      forget the above question.
      I found where the -lws2_32 should be added

       

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.