Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

jak zlinkowac dolaczony w linku cpp

23 views
Skip to first unread message

abc_javy

unread,
Nov 24, 2008, 5:56:45 AM11/24/08
to
jak skompilowac
http://www.reteam.org/blog/archives/unwand.cpp

zmienilem
#include "md5.h"
#include "des.h"
wewnatrz
na

#include "/usr/include/cryptopp/md5.h"
#include "/usr/include/cryptopp/des.h"

ale wciaz mam:
In file included from unwand.cpp:8:
/usr/include/cryptopp/md5.h:25:2: warning: #warning "You may be using a weak
algorithm that has been retained for backwards compatibility. Please
'#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and
prepend the class name with 'Weak::' to remove this warning."
unwand.cpp:171:2: warning: no newline at end of file
unwand.cpp: In function 'int main(int, char**)':
unwand.cpp:58: error: 'DES_KEY_SZ' was not declared in this scope
unwand.cpp:103: error: 'MD5_DIGEST_LENGTH' was not declared in this scope
unwand.cpp:114: error: 'hashSignature1' was not declared in this scope
unwand.cpp:114: error: 'MD5' was not declared in this scope
unwand.cpp:124: error: 'hashSignature2' was not declared in this scope
unwand.cpp:130: error: 'DES_key_schedule' was not declared in this scope
unwand.cpp:130: error: expected `;' before 'key_schedule1'
unwand.cpp:132: error: 'const_DES_cblock' was not declared in this scope
unwand.cpp:132: error: expected primary-expression before ')' token
unwand.cpp:133: error: 'key_schedule1' was not declared in this scope
unwand.cpp:133: error: 'DES_set_key_unchecked' was not declared in this
scope
unwand.cpp:135: error: expected primary-expression before ')' token
unwand.cpp:136: error: 'key_schedule2' was not declared in this scope
unwand.cpp:138: error: expected primary-expression before ')' token
unwand.cpp:139: error: 'key_schedule3' was not declared in this scope
unwand.cpp:141: error: 'DES_cblock' was not declared in this scope
unwand.cpp:141: error: expected `;' before 'iVector'
unwand.cpp:142: error: 'iVector' was not declared in this scope
unwand.cpp:151: error: 'DES_ede3_cbc_encrypt' was not declared in this scope

abc_javy

unread,
Nov 25, 2008, 7:36:19 AM11/25/08
to

Mirek

unread,
Nov 25, 2008, 9:47:57 AM11/25/08
to
On pon, 24 lis 2008 11:56:45 in article news:<gge1b5$485$1...@inews.gazeta.pl>
abc_javy wrote:
> jak skompilowac
> http://www.reteam.org/blog/archives/unwand.cpp

Dodałem do oryginału:

#include <string.h>

i kompiluje mi się to poleceniem:

g++ -I /usr/include/openssl unwand.cpp -l ssl

a czy działa?

0 new messages