Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. CXX protocol.o
  2. protocol.cpp:113:3: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat]
  3. constexpr uint32_t delta = 0x9E3779B9;
  4. ^
  5. protocol.cpp: In function ‘void {anonymous}::XTEA_encrypt_1x8(const uint8_t*, uint8_t*, const uint32_t*)’:
  6. protocol.cpp:113:3: error: ‘constexpr’ was not declared in this scope
  7. protocol.cpp:113:13: error: expected ‘;’ before ‘uint32_t’
  8. constexpr uint32_t delta = 0x9E3779B9;
  9. ^
  10. protocol.cpp:115:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
  11. for (auto i = 0u; i < 32; ++i) {
  12. ^
  13. protocol.cpp:115:13: error: ‘i’ does not name a type
  14. for (auto i = 0u; i < 32; ++i) {
  15. ^
  16. protocol.cpp:115:21: error: expected ‘;’ before ‘i’
  17. for (auto i = 0u; i < 32; ++i) {
  18. ^
  19. protocol.cpp:115:21: error: ‘i’ was not declared in this scope
  20. protocol.cpp:117:11: error: ‘delta’ was not declared in this scope
  21. sum += delta;
  22. ^
  23. protocol.cpp: In function ‘void {anonymous}::XTEA_encrypt_4x8(const uint8_t*, uint8_t*, const uint32_t*)’:
  24. protocol.cpp:137:3: error: ‘constexpr’ was not declared in this scope
  25. constexpr uint32_t delta = 0x9E3779B9;
  26. ^
  27. protocol.cpp:137:13: error: expected ‘;’ before ‘uint32_t’
  28. constexpr uint32_t delta = 0x9E3779B9;
  29. ^
  30. protocol.cpp:139:8: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
  31. for (auto i = 0u; i < 32; ++i) {
  32. ^
  33. protocol.cpp:139:13: error: ‘i’ does not name a type
  34. for (auto i = 0u; i < 32; ++i) {
  35. ^
  36. protocol.cpp:139:21: error: expected ‘;’ before ‘i’
  37. for (auto i = 0u; i < 32; ++i) {
  38. ^
  39. protocol.cpp:139:21: error: ‘i’ was not declared in this scope
  40. protocol.cpp:144:11: error: ‘delta’ was not declared in this scope
  41. sum += delta;
  42. ^
  43. protocol.cpp: In member function ‘void Protocol::XTEA_encrypt(OutputMessage&)’:
  44. protocol.cpp:173:40: error: invalid conversion from ‘char*’ to ‘uint8_t* {aka unsigned char*}’ [-fpermissive]
  45. uint8_t* buffer = msg.getOutputBuffer();
  46. ^
  47. protocol.cpp:179:36: error: ‘key’ was not declared in this scope
  48. XTEA_encrypt_4x8(buffer, buffer, key);
  49. ^
  50. protocol.cpp:185:36: error: ‘key’ was not declared in this scope
  51. XTEA_encrypt_1x8(buffer, buffer, key);
  52. ^
  53. make[1]: *** [protocol.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement