undefined reference to `_WSAStartup@8 ...
i got the classes from here:
http://www.adp-gmbh.ch/win/misc/sockets.html
but when i try to compile them, i get
undefined reference to `_WSAStartup@8
undefined reference to `_socket@12
undefined reference to `_closesocket@4
undefined reference to `_htons@4
...
what should i do to fix these problems? from what i can tell, all the "normal" functions that people need to write a Socket program are undefined.
im developing on Code Blocks and the compiler's that is set to default is "GNU GCC Compiler".
try to link with -lwsock32 lib
or ws2_32.lib.
Topic archived. No new replies allowed.