Re: [Dev-C++] Trouble compiling winsock programs.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Palamino <am...@ur...> - 2002-12-29 20:19:01
|
Just add "c:\Dev-c++\Lib\libwsock32.a" (supposing you have Dev-c++ installed on drive C) in the project options, under "Further object files or linker options". ----- Original Message ----- From: "Manoj Sharma" <sha...@ro...> To: "Dev-C++" <dev...@li...> Sent: Sunday, December 29, 2002 10:14 PM Subject: [Dev-C++] Trouble compiling winsock programs. > Hi, > > I am trying to compile a simple winsock program using Dev-C++ and get the > following error > [Linker error] undefined reference to WSAStartup@8. I tried generating my > own libwsock32.a library using the wsock32.dll on my system with the help > of the dllwrap utility and linking it to my program by copying the generated > .a file to the lib directory but the error stayed the same. > > I also tried using an older version of wsock32.dll (since I have the latest > version of the dll) and it may not be compatible with the header files as > supplied by Dev-C++. But this gave me the same undefined reference error. > > As a last resort I tried using the header files supplied by the Microsoft > SDK instead of the include directory header files as supplied by Dev-C++. I > get a target architecture must be defined error. An attempt to #define > _M_IX86 which is the macro that needs to be defined leads to further errors, > so I would prefer not to go down that path further. > > Can anyone suggest what else can be done to get a very simple winsock > program to work. I have the XP OS on a Pentium machine. > > Regards, > Manoj. > > http://manoj_sharma0.tripod.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |