i try to compile a simple winsock2 program and get this error: undefined reference to 'WSAStartup@8'. what am i doing wrong?
Did you link winsock when compiling. You must include the -lwsock32 (version 1.1) or -lws2_32 (version 2) for it to work.
BlakJak :]
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.
i try to compile a simple winsock2 program and get this error: undefined reference to 'WSAStartup@8'.
what am i doing wrong?
Did you link winsock when compiling. You must include the -lwsock32 (version 1.1) or -lws2_32 (version 2) for it to work.
BlakJak :]
I have the same problem with the linker:
C:\DEV-C_~1\LIB\\libscrnsave.a(scrnsave.o)(.text+0x738): undefined reference to `ScreenSaverProc@16'