-
Winsock Question
Does anyone here have a copy of the file "winsock32.lib" or a link to a site that does?
I have searched extensively MSDN, google, altavista, etc - but to no avail...
My program will not even compile without it, and my compiler's "lib" files do not include this file....
-
-
what compiler are you using? It may be possible to build the lib from the dll - you'd still need the header though so Dual-Catfish's 'disclaimer' still holds.
Alternatively you could get one of the free compilers. Borlands bcc5.5 cmd line tools has a copy (but it's specific to that compiler, although win32 code should compile more or less without too much tweaking). MinGW also as a version (libwsock32.a) - again you'd have to build your app with that compiler.
-
Actually. I had it, though I didn't know it!
Here's why: In the Winsock documentation it said I had to link to "wsock32.lib" (in the post I typed it incorrectly). I searched my compiler, but to no avail. Finally, I found that if I added to the "additional compiler instruction" line : " -lwsock32 ", it compiled fine, linking to the file in my lib directory "libwsock32.a", and ran! The compiler is the Bloodshed Dev C/C++ Compiler. The requirements may be the same or similar with different compilers...
-
I had problems with DevC++4 and winsock.....I ended up having to make a slight alteration to the header....and then it worked.....
I also had to use both winsock libs (1+2) to get it to work......weird...but then you pay your money and you take your chances...
BTW, various magazines are giving Codewarrior 5 Pro away at the moment and it is a brilliant IDE & Compiler.......loads more than DevC++ (resource editor, MFC Templates, Java compiler as well!!).
If you have the chance get a magazine with it on ....it will be the best £5 you will ever spend...