Menu

undefined reference to 'WSAStartup@8'

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

    i try to compile a simple winsock2 program and get this error: undefined reference to 'WSAStartup@8'.
    what am i doing wrong?

     
    • Nobody/Anonymous

      Did you link winsock when compiling. You must include the -lwsock32 (version 1.1) or -lws2_32 (version 2)  for  it to work.

      BlakJak :]

       
    • Anonymous

      Anonymous - 2002-09-23

      I have the same problem with the linker:

      C:\DEV-C_~1\LIB\\libscrnsave.a(scrnsave.o)(.text+0x738): undefined reference to `ScreenSaverProc@16'

       

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.