Hi mm-29, I have a similar problem. Could you please tell me where and how to add this "-lws2_32" ?
Thanks in advance, mm-29 wrote: > > > Hi dear trungantran > > I did it and it compiled now thank you very very much > > > > > On Sep 10, 8:09 am, mm <[email protected]> wrote: >> Hi thank you very much for the reply >> >> I use Mingw but I dont know how I should do what you said about adding >> "-lws2_32" to the linker command. can you please tell me where and how >> I should add this "-lws2_32" ? >> >> Thanks alot >> >> On Sep 10, 12:39 am, trungantran <[email protected]> wrote: >> >> >> >> > If you are using a MSVC-compatible compiler(Borland, Intel ...), use >> > "#pragma comment("ws2_32.lib")". >> > If you are using GCC(MinGW/Cygwin) or a compiler that doesnt support >> > auto-linking, you need to fix the linker command. For example, in case >> > of GCC, you have to add "-lws2_32" to the linker command. >> >> > On Sep 8, 10:03 am, mm <[email protected]> wrote: >> >> > > Hi thank you for your reply >> >> > > I add #pragma comment(lib,"Ws2_32.lib") at the begining of the >> > > socketft.h but nothing changed and still I have the errors. can you >> > > please tell me what is wrong? >> >> > > thank you >> >> > > On Sep 8, 9:54 am, "ka-bar" <[email protected]> wrote: >> >> > > > Try this: >> > > > #pragma comment(lib,"Ws2_32.lib") >> > > > Add it to your file. >> >> > > > ka-bar >> >> > > > -------------------------------------------------- >> > > > From: "mm" <[email protected]> >> > > > Sent: Tuesday, September 08, 2009 8:55 AM >> > > > To: "Crypto++ Users" <[email protected]> >> > > > Subject: compile error in socketft.cpp >> >> > > > > Hi everyone >> >> > > > > I am a new member to this group so firstly thnaks to evryone >> >> > > > > I am trying to compile the crypto++ on omnet++ in windows xp. >> > > > > first I got an error in rijndael.cpp which said :'alloca' was >> not >> > > > > declared in this scope therefore I add #include <malloc.h> at the >> > > > > begining of rijndael.cpp and try to compile again but I got 6 >> errors >> > > > > in socketft.cpp as follows: >> >> > > > > undefined reference to `_wsaenumnetworkeve...@12' >> > > > > undefined reference to `_wsaeventsel...@12' >> > > > > undefined reference to `_wsagetoverlappedres...@20' >> > > > > undefined reference to `_wsagetoverlappedres...@20' >> > > > > undefined reference to `_wsar...@28' >> > > > > undefined reference to `_wsas...@28' >> >> > > > > can you please help me what is wrong? >> >> > > > > thanks in advance- Hide quoted text - >> >> > > > - Show quoted text -- Hide quoted text - >> >> > - Show quoted text -- Hide quoted text - >> >> - Show quoted text - > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the "Crypto++ > Users" Google Group. > To unsubscribe, send an email to > [email protected]. > More information about Crypto++ and this group is available at > http://www.cryptopp.com. > -~----------~----~----~----~------~----~------~--~--- > > > -- View this message in context: http://old.nabble.com/compile-error-in-socketft.cpp-tp25338578p27355241.html Sent from the Crypto++ Users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
