RE: [Dev-C++] Trouble compiling winsock programs.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Manoj S. <sha...@ro...> - 2002-12-30 17:03:47
|
That did the trick! Adding -lws2_32 to my command line is just what the doctor ordered. Thanks a lot for your help guys! It is greatly appreciated. Regards, Manoj. http://manoj_sharma0.tripod.com -----Original Message----- From: Abhijit Shylanath [mailto:mu...@gm...] Sent: Monday, December 30, 2002 5:49 AM To: Manoj Sharma; Dev-C++ Subject: Re: [Dev-C++] Trouble compiling winsock programs. > Hi, > > Thanks for your prompt responses! > > I should have mentioned in my earlier that I did try adding the -lwsock32 > option to the linker command line.I tried it once again though and the > result was the same as before.The undefined reference error to WSAStartup > error still shows up. Try linking in the WinSock2 lib, as Charles mentioned. > Also I would like to run this a stand alone file (not a project). Any > suggestions? For this, you might want to use the command-line/make, or else, specify in compiler options that you want the WinSock lib to be linked with all your programs. Remove it once you're done with this project. Bit of a hassle. Command-line would be better. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |