Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CXX protocol.o
- protocol.cpp:113:3: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat]
- constexpr uint32_t delta = 0x9E3779B9;
- ^
- protocol.cpp: In function ‘void {anonymous}::XTEA_encrypt_1x8(const uint8_t*, uint8_t*, const uint32_t*)’:
- protocol.cpp:113:3: error: ‘constexpr’ was not declared in this scope
- protocol.cpp:113:13: error: expected ‘;’ before ‘uint32_t’
- constexpr uint32_t delta = 0x9E3779B9;
- ^
- protocol.cpp:115:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:115:13: error: ‘i’ does not name a type
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:115:21: error: expected ‘;’ before ‘i’
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:115:21: error: ‘i’ was not declared in this scope
- protocol.cpp:117:11: error: ‘delta’ was not declared in this scope
- sum += delta;
- ^
- protocol.cpp: In function ‘void {anonymous}::XTEA_encrypt_4x8(const uint8_t*, uint8_t*, const uint32_t*)’:
- protocol.cpp:137:3: error: ‘constexpr’ was not declared in this scope
- constexpr uint32_t delta = 0x9E3779B9;
- ^
- protocol.cpp:137:13: error: expected ‘;’ before ‘uint32_t’
- constexpr uint32_t delta = 0x9E3779B9;
- ^
- protocol.cpp:139:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:139:13: error: ‘i’ does not name a type
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:139:21: error: expected ‘;’ before ‘i’
- for (auto i = 0u; i < 32; ++i) {
- ^
- protocol.cpp:139:21: error: ‘i’ was not declared in this scope
- protocol.cpp:144:11: error: ‘delta’ was not declared in this scope
- sum += delta;
- ^
- protocol.cpp: In member function ‘void Protocol::XTEA_encrypt(OutputMessage&)’:
- protocol.cpp:173:40: error: invalid conversion from ‘char*’ to ‘uint8_t* {aka unsigned char*}’ [-fpermissive]
- uint8_t* buffer = msg.getOutputBuffer();
- ^
- protocol.cpp:179:36: error: ‘key’ was not declared in this scope
- XTEA_encrypt_4x8(buffer, buffer, key);
- ^
- protocol.cpp:185:36: error: ‘key’ was not declared in this scope
- XTEA_encrypt_1x8(buffer, buffer, key);
- ^
- make[1]: *** [protocol.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement