Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uWaterloo ~/cs454/cs454-a3 $ ./scripts/build.sh
- /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
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /u3/m2azer/cs454/cs454-a3/build
- [ 11%] Building CXX object CMakeFiles/rpc.dir/librpc/func_database.cpp.o
- In file included from /usr/include/c++/4.9/unordered_map:35:0,
- from /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:5,
- from /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:1:
- /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.
- #error This file requires compiler and library support for the \
- ^
- In file included from /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:1:0:
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:10:14: error: 'unordered_map' in namespace 'std' does not name a template type
- typedef std::unordered_map<CharVec, InfoVec, std::hash<CharVec> > Database;
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:21: error: 'hash' is not a class template
- template<> struct hash<CharVec> {
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:35: error: explicit specialization of non-template 'std::hash'
- template<> struct hash<CharVec> {
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp: In member function 'std::size_t std::hash::operator()(const CharVec&) const':
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:15:7: error: 'std::hash' is not a template
- hash<char> hasher;
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:17:44: error: 'const CharVec' has no member named 'cbegin'
- for (CharVec::const_iterator cit = c.cbegin(); cit != c.cend(); cit++) {
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:17:63: error: 'const CharVec' has no member named 'cend'
- for (CharVec::const_iterator cit = c.cbegin(); cit != c.cend(); cit++) {
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:19:28: error: no match for call to '(std::hash) (const char&)'
- seed ^= hasher(*cit) + 0x9e3779b9 + (seed<<6) + (seed>>2);
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:13:21: note: candidate is:
- template<> struct hash<CharVec> {
- ^
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:14:12: note: std::size_t std::hash::operator()(const CharVec&) const
- size_t operator()(const CharVec &c) const {
- ^
- /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>&}'
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp: At global scope:
- /u3/m2azer/cs454/cs454-a3/include/func_database.hpp:33:3: error: 'Database' does not name a type
- Database database;
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::save_function(const ServerInfo&, const char*, const int*, int)':
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:6:13: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:6:41: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:7:11: error: 'class FuncDatabase' has no member named 'database'
- this->database[key] = InfoVec();
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:8:11: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:10:39: error: 'class FuncDatabase' has no member named 'database'
- for (InfoVec::iterator it = this->database[key].begin(); ; it++) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:11:23: error: 'class FuncDatabase' has no member named 'database'
- if (it == this->database[key].end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:12:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:16:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(it);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:17:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::find_server(const char*, const int*, int, ServerInfo&)':
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:13: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:41: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:31:16: error: 'class FuncDatabase' has no member named 'database'
- info = this->database[key][0];
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:9: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(this->database[key].begin());
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:35: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(this->database[key].begin());
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:35:9: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- make[2]: *** [CMakeFiles/rpc.dir/librpc/func_database.cpp.o] Error 1
- make[1]: *** [CMakeFiles/rpc.dir/all] Error 2
- make: *** [all] Error 2
- uWaterloo ~/cs454/cs454-a3 $ tmux attach
- this->database[key] = InfoVec();
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:8:11: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:10:39: error: 'class FuncDatabase' has no member named 'database'
- for (InfoVec::iterator it = this->database[key].begin(); ; it++) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:11:23: error: 'class FuncDatabase' has no member named 'database'
- if (it == this->database[key].end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:12:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:16:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(it);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:17:15: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp: In member function 'int FuncDatabase::find_server(const char*, const int*, int, ServerInfo&)':
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:13: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:27:41: error: 'class FuncDatabase' has no member named 'database'
- if (this->database.find(key) == this->database.end()) {
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:31:16: error: 'class FuncDatabase' has no member named 'database'
- info = this->database[key][0];
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:9: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(this->database[key].begin());
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:34:35: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].erase(this->database[key].begin());
- ^
- /u3/m2azer/cs454/cs454-a3/librpc/func_database.cpp:35:9: error: 'class FuncDatabase' has no member named 'database'
- this->database[key].push_back(info);
- ^
- make[2]: *** [CMakeFiles/rpc.dir/librpc/func_database.cpp.o] Error 1
- make[1]: *** [CMakeFiles/rpc.dir/all] Error 2
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement