User forums > Using Code::Blocks

could not find -lwsock32.lib

(1/1)

thomas_joyee:
Hi all,
 
I have installed mingw and code blocks on my computer. Now I am trying to learn the basis of socket programming. To do this I included wsock32.lib in the project. But I got an error message “could not find –lwsock32.lib”. I searched on my computer for this file and find it does not exist. How can I get this library file?
 
Thanks and regards,
Thomas

Vuki:
Which compiler do you use? Try either -lwsock32 or libwsock32.lib in your linker options.

Navigation

[0] Message Index

Go to full version