Tuskony Posted June 20, 2003 Posted June 20, 2003 I'm reading through a Winsock book for C++ and it says that in order to use winsock2 I need to reference the ws2_32.lib library file. How do I do this with the .Net compiler? "When compiling your application with WINSOCK2.H, you should link with WS2_32.LIB library" That's what my book says. Thanks in advance. Quote
Administrators PlausiblyDamp Posted June 20, 2003 Administrators Posted June 20, 2003 Are you using C++ from within the Visual Studio IDE? If so right click on the project and go to properties, under linker advanced there should be an entry for Import Library. Type WS2_32.Lib into the field. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
wyrd Posted June 20, 2003 Posted June 20, 2003 Are you using C++? If you're using C++ I'd imagine you link it like you would any other C++ project. If you're using .NET I believe there's a class library in the .NET framework that encapsulates winsock functionality. If not try the import attribute. Quote Gamer extraordinaire. Programmer wannabe.
Tuskony Posted June 20, 2003 Author Posted June 20, 2003 PlausiblyDamp > Umm, I don't see the Linker option? I'm using the Visual Studio .Net compiler if that makes any difference? And yes I'm using C++. Quote
*Experts* mutant Posted June 20, 2003 *Experts* Posted June 20, 2003 It should be there like PlausiblyDamp said, right click your project, select properties, on the left there is a treeview with options, there should be one that Configuration Properties, expand that, and then expand one that says linker, then click on Advanced on the expanded list. And there should be an Import Library option on the right. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.