Author Topic: could not find -lwsock32.lib  (Read 4476 times)

thomas_joyee

  • Guest
could not find -lwsock32.lib
« 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

Offline Vuki

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: could not find -lwsock32.lib
« Reply #1 on: July 14, 2008, 02:24:50 pm »
Which compiler do you use? Try either -lwsock32 or libwsock32.lib in your linker options.