1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
a@a-1000H:~$ g++ mym2swt.cpp
mym2swt.cpp: In function ‘int main(int, const char**)’:
mym2swt.cpp:4:5: error: ‘xmreg’ has not been declared
xmreg::CmdLineOptions opts {ac, av};
^
mym2swt.cpp:4:27: error: expected ‘;’ before ‘opts’
xmreg::CmdLineOptions opts {ac, av};
^
mym2swt.cpp:6:10: error: ‘help_opt’ does not name a type
auto help_opt = opts.get_option<bool>("help");
^
mym2swt.cpp:9:10: error: ‘help_opt’ was not declared in this scope
if (*help_opt)
^
mym2swt.cpp:16:5: error: ‘string’ was not declared in this scope
string language {"English"};
^
mym2swt.cpp:16:12: error: expected ‘;’ before ‘language’
string language {"English"};
^
mym2swt.cpp:19:10: error: ‘mnemonic_opt’ does not name a type
auto mnemonic_opt = opts.get_option<string>("mnemonic");
^
mym2swt.cpp:20:10: error: ‘wallet_file_opt’ does not name a type
auto wallet_file_opt = opts.get_option<string>("wallet-file");
^
mym2swt.cpp:21:10: error: ‘password_opt’ does not name a type
auto password_opt = opts.get_option<string>("password");
^
mym2swt.cpp:25:12: error: expected ‘;’ before ‘mnemonic_str’
string mnemonic_str = mnemonic_opt
^
mym2swt.cpp:33:12: error: expected ‘;’ before ‘wallet_file’
string wallet_file = wallet_file_opt
^
mym2swt.cpp:38:12: error: expected ‘;’ before ‘keys_file_name’
string keys_file_name = wallet_file + string(".keys");
^
mym2swt.cpp:40:12: error: expected ‘;’ before ‘password’
string password = password_opt ? *password_opt : "password";
^
mym2swt.cpp:42:5: error: ‘cout’ was not declared in this scope
cout << "\n"
^
mym2swt.cpp:43:38: error: ‘mnemonic_str’ was not declared in this scope
<< "Mnemonic seed : " << mnemonic_str << endl;
^
mym2swt.cpp:43:54: error: ‘endl’ was not declared in this scope
<< "Mnemonic seed : " << mnemonic_str << endl;
^
mym2swt.cpp:48:5: error: ‘xmreg’ has not been declared
xmreg::secret_key16 hexadecimal_seed;
^
mym2swt.cpp:48:25: error: expected ‘;’ before ‘hexadecimal_seed’
xmreg::secret_key16 hexadecimal_seed;
^
mym2swt.cpp:51:5: error: ‘xmreg’ has not been declared
xmreg::ElectrumWords::words_to_bytes(mnemonic_str, hexadecimal_seed, language);
^
mym2swt.cpp:51:56: error: ‘hexadecimal_seed’ was not declared in this scope
xmreg::ElectrumWords::words_to_bytes(mnemonic_str, hexadecimal_seed, language);
^
mym2swt.cpp:51:74: error: ‘language’ was not declared in this scope
xmreg::ElectrumWords::words_to_bytes(mnemonic_str, hexadecimal_seed, language);
^
mym2swt.cpp:60:5: error: ‘crypto’ has not been declared
crypto::hash hash_of_seed;
^
mym2swt.cpp:60:18: error: expected ‘;’ before ‘hash_of_seed’
crypto::hash hash_of_seed;
^
mym2swt.cpp:62:72: error: ‘hash_of_seed’ was not declared in this scope
cn_fast_hash(hexadecimal_seed.data, sizeof(hexadecimal_seed.data), hash_of_seed);
^
mym2swt.cpp:62:84: error: ‘cn_fast_hash’ was not declared in this scope
cn_fast_hash(hexadecimal_seed.data, sizeof(hexadecimal_seed.data), hash_of_seed);
^
mym2swt.cpp:72:5: error: ‘crypto’ has not been declared
crypto::public_key public_spend_key;
^
mym2swt.cpp:72:24: error: expected ‘;’ before ‘public_spend_key’
crypto::public_key public_spend_key;
^
mym2swt.cpp:73:5: error: ‘crypto’ has not been declared
crypto::secret_key private_spend_key;
^
mym2swt.cpp:73:24: error: expected ‘;’ before ‘private_spend_key’
crypto::secret_key private_spend_key;
^
mym2swt.cpp:75:5: error: ‘crypto’ has not been declared
crypto::generate_keys(public_spend_key, private_spend_key,
^
mym2swt.cpp:75:27: error: ‘public_spend_key’ was not declared in this scope
crypto::generate_keys(public_spend_key, private_spend_key,
^
mym2swt.cpp:75:45: error: ‘private_spend_key’ was not declared in this scope
crypto::generate_keys(public_spend_key, private_spend_key,
^
mym2swt.cpp:76:27: error: ‘xmreg’ has not been declared
xmreg::get_key_from_hash<crypto::secret_key>(hash_of_seed),
^
mym2swt.cpp:76:52: error: ‘crypto’ has not been declared
xmreg::get_key_from_hash<crypto::secret_key>(hash_of_seed),
^
mym2swt.cpp:85:5: error: ‘crypto’ has not been declared
crypto::hash hash_of_hash;
^
mym2swt.cpp:85:18: error: expected ‘;’ before ‘hash_of_hash’
crypto::hash hash_of_hash;
^
mym2swt.cpp:86:64: error: ‘hash_of_hash’ was not declared in this scope
cn_fast_hash(hash_of_seed.data, sizeof(hash_of_seed.data), hash_of_hash);
^
mym2swt.cpp:88:5: error: ‘crypto’ has not been declared
crypto::public_key public_view_key;
^
mym2swt.cpp:88:24: error: expected ‘;’ before ‘public_view_key’
crypto::public_key public_view_key;
^
mym2swt.cpp:89:5: error: ‘crypto’ has not been declared
crypto::secret_key private_view_key;
^
mym2swt.cpp:89:24: error: expected ‘;’ before ‘private_view_key’
crypto::secret_key private_view_key;
^
mym2swt.cpp:92:5: error: ‘crypto’ has not been declared
crypto::generate_keys(public_view_key, private_view_key,
^
mym2swt.cpp:92:27: error: ‘public_view_key’ was not declared in this scope
crypto::generate_keys(public_view_key, private_view_key,
^
mym2swt.cpp:92:44: error: ‘private_view_key’ was not declared in this scope
crypto::generate_keys(public_view_key, private_view_key,
^
mym2swt.cpp:93:27: error: ‘xmreg’ has not been declared
xmreg::get_key_from_hash<crypto::secret_key>(hash_of_hash),
^
mym2swt.cpp:93:52: error: ‘crypto’ has not been declared
xmreg::get_key_from_hash<crypto::secret_key>(hash_of_hash),
^
mym2swt.cpp:103:5: error: ‘cryptonote’ has not been declared
cryptonote::account_public_address address {public_spend_key, public_view_key};
^
mym2swt.cpp:103:40: error: expected ‘;’ before ‘address’
cryptonote::account_public_address address {public_spend_key, public_view_key};
^
mym2swt.cpp:107:38: error: ‘address’ was not declared in this scope
<< "Monero address : " << address << endl;
^
mym2swt.cpp:118:5: error: ‘xmreg’ has not been declared
xmreg::simple_account account;
^
mym2swt.cpp:118:27: error: expected ‘;’ before ‘account’
xmreg::simple_account account;
|