Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: thomas_joyee on July 14, 2008, 02:18:51 pm

Title: could not find -lwsock32.lib
Post by: thomas_joyee on July 14, 2008, 02:18:51 pm
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
Title: Re: could not find -lwsock32.lib
Post by: Vuki on July 14, 2008, 02:24:50 pm
Which compiler do you use? Try either -lwsock32 or libwsock32.lib in your linker options.