[C++] someone to compile this code asap

Status
Not open for further replies.

jokerhacker

Active Member
415
2010
45
0
hey guys, i don't know a shit about c++ and i need to compile this code, it's very urgent for me, i just need a 32bit executable. I tried to compile it, but i got hundreds of errors :blink:

http://pastebin.com/J2KZfgpU

note: comments and var names are in french.

thanks in advance
 
Last edited:
8 comments
Why are you using Precompiled header ? any good reason ?
Also the code has some bugs..
with all the needed header files, here's the log

Code:
jokerhacker.cpp:34: error: ‘Transcoder’ declared as function returning an array
jokerhacker.cpp:15: error: new types may not be defined in a return type
jokerhacker.cpp:15: note: (perhaps a semicolon is missing after the definition of ‘Class_one’)
jokerhacker.cpp:39: error: return type specification for constructor invalid
jokerhacker.cpp: In member function ‘void Class_one::test_primalite(__mpz_struct*, __mpz_struct*)’:
jokerhacker.cpp:140: error: expected primary-expression before ‘p’
jokerhacker.cpp:140: error: expected primary-expression before ‘var’
jokerhacker.cpp:140: error: expected primary-expression before ‘e’
jokerhacker.cpp:140: error: expected primary-expression before ‘n’
jokerhacker.cpp: In member function ‘void Class_one::nextprime(__mpz_struct*, const __mpz_struct*)’:
jokerhacker.cpp:196: error: invalid use of qualified-name ‘Class_one::test_primalite’
jokerhacker.cpp:200: error: invalid use of qualified-name ‘Class_one::test_primalite’
jokerhacker.cpp: In member function ‘void Class_one::Genere_publicKey(__mpz_struct*, __mpz_struct*, __mpz_struct*, __gmp_randstate_struct*)’:
jokerhacker.cpp:234: error: invalid use of qualified-name ‘Class_one::PGCD’
jokerhacker.cpp:241: error: invalid use of qualified-name ‘Class_one::PGCD’
jokerhacker.cpp: In member function ‘void Class_one::Genere_nbPremier(__mpz_struct*, __mpz_struct*, int, __gmp_randstate_struct*)’:
jokerhacker.cpp:326: error: invalid use of qualified-name ‘Class_one::nextprime’
jokerhacker.cpp:335: error: invalid use of qualified-name ‘Class_one::nextprime’
jokerhacker.cpp: In member function ‘void Class_one::chiffre_Msg(__mpz_struct*, __mpz_struct*, __mpz_struct*, __mpz_struct*)’:
jokerhacker.cpp:355: error: invalid use of qualified-name ‘Class_one::puissance’
jokerhacker.cpp: In member function ‘void Class_one::dechiffre_Msg(__mpz_struct*, __mpz_struct*, __mpz_struct*, __mpz_struct*)’:
jokerhacker.cpp:375: error: invalid use of qualified-name ‘Class_one::puissance’
jokerhacker.cpp: At global scope:
jokerhacker.cpp:402: error: ‘Transcoder’ declared as function returning an array
jokerhacker.cpp: In member function ‘std::string Class_one::DeTranscoder(__mpz_struct*)’:
jokerhacker.cpp:450: error: request for member ‘size’ in ‘aux’, which is of non-class type ‘__mpz_struct [1]’
jokerhacker.cpp:452: error: incompatible types in assignment of ‘void’ to ‘__mpz_struct [1]’
jokerhacker.cpp:453: error: cast from ‘__mpz_struct*’ to ‘char’ loses precision
jokerhacker.cpp: At global scope:
jokerhacker.cpp:461: error: new types may not be defined in a return type
jokerhacker.cpp:461: note: (perhaps a semicolon is missing after the definition of ‘Cryptage’)
jokerhacker.cpp:467: error: two or more data types in declaration of ‘crypter_RSA’
jokerhacker.cpp: In function ‘int main()’:
jokerhacker.cpp:630: error: invalid use of qualified-name ‘Cryptage::crypter_RSA’
 
Status
Not open for further replies.
Back
Top