Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.07 KB | None | 0 0
  1. uWaterloo ~/cs454/cs454-a3 $ ./scripts/build.sh
  2. /u3/m2azer/cs454/cs454-a3/src/server_function_skels.cpp/u3/m2azer/cs454/cs454-a3/src/server_functions.cpp/u3/m2azer/cs454/cs454-a3/src/socket.cpp
  3. -- Configuring done
  4. -- Generating done
  5. -- Build files have been written to: /u3/m2azer/cs454/cs454-a3/build
  6. [ 11%] Building CXX object CMakeFiles/rpc.dir/librpc/func_database.cpp.o
  7. In file included from /usr/include/c++/4.9/unordered_map:35:0,
  8.                  from /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:5,
  9.                  from /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:1:
  10. /usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
  11.  #error This file requires compiler and library support for the \
  12.   ^
  13. In file included from /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:1:0:
  14. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:10:14: error: 'unordered_map' in namespace 'std' does not name a template type
  15.  typedef std::unordered_map<CharVec, InfoVec, std::hash<CharVec> > Database;
  16.               ^
  17. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:21: error: 'hash' is not a class template
  18.    template<> struct hash<CharVec> {
  19.                      ^
  20. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:35: error: explicit specialization of non-template 'std::hash'
  21.    template<> struct hash<CharVec> {
  22.                                    ^
  23. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp: In member function 'std::size_t std::hash::operator()(const CharVec&) const':
  24. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:15:7: error: 'std::hash' is not a template
  25.        hash<char> hasher;
  26.        ^
  27. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:17:44: error: 'const CharVec' has no member named 'cbegin'
  28.        for (CharVec::const_iterator cit = c.cbegin(); cit != c.cend(); cit++) {
  29.                                             ^
  30. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:17:63: error: 'const CharVec' has no member named 'cend'
  31.        for (CharVec::const_iterator cit = c.cbegin(); cit != c.cend(); cit++) {
  32.                                                                ^
  33. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:19:28: error: no match for call to '(std::hash) (const char&)'
  34.          seed ^= hasher(*cit) + 0x9e3779b9 + (seed<<6) + (seed>>2);
  35.                             ^
  36. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:21: note: candidate is:
  37.    template<> struct hash<CharVec> {
  38.                      ^
  39. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:14:12: note: std::size_t std::hash::operator()(const CharVec&) const
  40.      size_t operator()(const CharVec &c) const {
  41.             ^
  42. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:14:12: note:   no known conversion for argument 1 from 'const char' to 'const CharVec& {aka const std::vector<char>&}'
  43. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp: At global scope:
  44. /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:33:3: error: 'Database' does not name a type
  45.    Database database;
  46.    ^
  47. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::save_function(const ServerInfo&, const char*, const int*, int)':
  48. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:6:13: error: 'class FuncDatabase' has no member named 'database'
  49.    if (this->database.find(key) == this->database.end()) {
  50.              ^
  51. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:6:41: error: 'class FuncDatabase' has no member named 'database'
  52.    if (this->database.find(key) == this->database.end()) {
  53.                                          ^
  54. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:7:11: error: 'class FuncDatabase' has no member named 'database'
  55.      this->database[key] = InfoVec();
  56.            ^
  57. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:8:11: error: 'class FuncDatabase' has no member named 'database'
  58.      this->database[key].push_back(info);
  59.            ^
  60. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:10:39: error: 'class FuncDatabase' has no member named 'database'
  61.      for (InfoVec::iterator it = this->database[key].begin(); ; it++) {
  62.                                        ^
  63. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:11:23: error: 'class FuncDatabase' has no member named 'database'
  64.        if (it == this->database[key].end()) {
  65.                        ^
  66. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:12:15: error: 'class FuncDatabase' has no member named 'database'
  67.          this->database[key].push_back(info);
  68.                ^
  69. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:16:15: error: 'class FuncDatabase' has no member named 'database'
  70.          this->database[key].erase(it);
  71.                ^
  72. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:17:15: error: 'class FuncDatabase' has no member named 'database'
  73.          this->database[key].push_back(info);
  74.                ^
  75. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::find_server(const char*, const int*, int, ServerInfo&)':
  76. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:13: error: 'class FuncDatabase' has no member named 'database'
  77.    if (this->database.find(key) == this->database.end()) {
  78.              ^
  79. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:41: error: 'class FuncDatabase' has no member named 'database'
  80.    if (this->database.find(key) == this->database.end()) {
  81.                                          ^
  82. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:31:16: error: 'class FuncDatabase' has no member named 'database'
  83.    info = this->database[key][0];
  84.                 ^
  85. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:9: error: 'class FuncDatabase' has no member named 'database'
  86.    this->database[key].erase(this->database[key].begin());
  87.          ^
  88. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:35: error: 'class FuncDatabase' has no member named 'database'
  89.    this->database[key].erase(this->database[key].begin());
  90.                                    ^
  91. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:35:9: error: 'class FuncDatabase' has no member named 'database'
  92.    this->database[key].push_back(info);
  93.          ^
  94. make[2]: *** [CMakeFiles/rpc.dir/librpc/func_database.cpp.o] Error 1
  95. make[1]: *** [CMakeFiles/rpc.dir/all] Error 2
  96. make: *** [all] Error 2
  97. uWaterloo ~/cs454/cs454-a3 $ tmux attach
  98.  
  99.      this->database[key] = InfoVec();
  100.            ^
  101. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:8:11: error: 'class FuncDatabase' has no member named 'database'
  102.      this->database[key].push_back(info);
  103.            ^
  104. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:10:39: error: 'class FuncDatabase' has no member named 'database'
  105.      for (InfoVec::iterator it = this->database[key].begin(); ; it++) {
  106.                                        ^
  107. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:11:23: error: 'class FuncDatabase' has no member named 'database'
  108.        if (it == this->database[key].end()) {
  109.                        ^
  110. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:12:15: error: 'class FuncDatabase' has no member named 'database'
  111.          this->database[key].push_back(info);
  112.                ^
  113. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:16:15: error: 'class FuncDatabase' has no member named 'database'
  114.          this->database[key].erase(it);
  115.                ^
  116. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:17:15: error: 'class FuncDatabase' has no member named 'database'
  117.          this->database[key].push_back(info);
  118.                ^
  119. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::find_server(const char*, const int*, int, ServerInfo&)':
  120. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:13: error: 'class FuncDatabase' has no member named 'database'
  121.    if (this->database.find(key) == this->database.end()) {
  122.              ^
  123. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:41: error: 'class FuncDatabase' has no member named 'database'
  124.    if (this->database.find(key) == this->database.end()) {
  125.                                          ^
  126. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:31:16: error: 'class FuncDatabase' has no member named 'database'
  127.    info = this->database[key][0];
  128.                 ^
  129. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:9: error: 'class FuncDatabase' has no member named 'database'
  130.    this->database[key].erase(this->database[key].begin());
  131.          ^
  132. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:35: error: 'class FuncDatabase' has no member named 'database'
  133.    this->database[key].erase(this->database[key].begin());
  134.                                    ^
  135. /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:35:9: error: 'class FuncDatabase' has no member named 'database'
  136.    this->database[key].push_back(info);
  137.          ^
  138. make[2]: *** [CMakeFiles/rpc.dir/librpc/func_database.cpp.o] Error 1
  139. make[1]: *** [CMakeFiles/rpc.dir/all] Error 2
  140. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement