compile error in socketft.cpp

331 צפיות
מעבר להודעה הראשונה שלא נקראה

mm

לא נקראה,
7 בספט׳ 2009, 20:55:487.9.2009
עד Crypto++ Users
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 `_WSAEnumNetworkEvents@12'
undefined reference to `_WSAEventSelect@12'
undefined reference to `_WSAGetOverlappedResult@20'
undefined reference to `_WSAGetOverlappedResult@20'
undefined reference to `_WSARecv@28'
undefined reference to `_WSASend@28'

can you please help me what is wrong?

thanks in advance

ka-bar

לא נקראה,
7 בספט׳ 2009, 21:54:217.9.2009
עד mm,Crypto++ Users
Try this:
#pragma comment(lib,"Ws2_32.lib")
Add it to your file.


ka-bar

--------------------------------------------------
From: "mm" <min...@gmail.com>
Sent: Tuesday, September 08, 2009 8:55 AM
To: "Crypto++ Users" <cryptop...@googlegroups.com>
Subject: compile error in socketft.cpp

mm

לא נקראה,
7 בספט׳ 2009, 23:03:517.9.2009
עד Crypto++ Users
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
> > thanks in advance- Hide quoted text -
>
> - Show quoted text -

trungantran

לא נקראה,
9 בספט׳ 2009, 12:39:549.9.2009
עד Crypto++ Users
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.

mm

לא נקראה,
9 בספט׳ 2009, 20:09:549.9.2009
עד Crypto++ Users
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
> > > - Show quoted text -- Hide quoted text -

mm

לא נקראה,
9 בספט׳ 2009, 23:24:199.9.2009
עד Crypto++ Users
Hi dear trungantran

I did it and it compiled now thank you very very much

franj

לא נקראה,
28 בינו׳ 2010, 7:36:1128.1.2010
עד cryptop...@googlegroups.com

Hi mm-29,

I have a similar problem. Could you please tell me where and how to add this
"-lws2_32" ?

Thanks in advance,

> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> cryptopp-user...@googlegroups.com.
> 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.

foad hergholi

לא נקראה,
7 בינו׳ 2014, 4:52:347.1.2014
עד cryptop...@googlegroups.com
hi every one.
i need to import cryptopp to omnet, but i dont know how add it
please help me about it?
i run omnet on windows 7 and i try to import cryptopp to omnet froom this post :

Chibueze Ogah

לא נקראה,
9 במאי 2014, 12:51:209.5.2014
עד cryptop...@googlegroups.com,mm,ka-bar_...@hotmail.com
Hi I have a similar issue here. Did you try this in Windows or Linux?

Vikas Patidar

לא נקראה,
13 ביוני 2014, 15:42:3413.6.2014
עד cryptop...@googlegroups.com,min...@gmail.com,ka-bar_...@hotmail.com
Add "Ws2_32.lib" without quotes to Linker->input in your visual studio project.
השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות