Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 9 years ago

Language

Compiler

Options

Author

anonymous

over 9 years ago

$
prog.cc:7:20: error: use of undeclared identifier 'std'
class connection : std::enable_shared_from_this<connection> {
                   ^
prog.cc:7:25: error: unknown template name 'enable_shared_from_this'
class connection : std::enable_shared_from_this<connection> {
                        ^
prog.cc:9:30: error: use of undeclared identifier 'asio'
  connection(server& server, asio::ip::tcp::socket socket);
                             ^
prog.cc:19:3: error: use of undeclared identifier 'asio'
  asio::ip::tcp::socket socket_;
  ^
prog.cc:24:40: error: use of undeclared identifier 'asio'
connection::connection(server& server, asio::ip::tcp::socket socket) :
                                       ^
prog.cc:25:28: error: use of undeclared identifier 'std'
  server_(server), socket_(std::move(socket))
                           ^
prog.cc:27:3: error: use of undeclared identifier 'std'
  std::cout << "connection opened: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
  ^
prog.cc:27:41: error: use of undeclared identifier 'std'
  std::cout << "connection opened: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                        ^
prog.cc:27:53: error: use of undeclared identifier 'std'
  std::cout << "connection opened: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                                    ^
prog.cc:27:95: error: use of undeclared identifier 'std'
  std::cout << "connection opened: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                                                                              ^
prog.cc:28:22: error: use of undeclared identifier 'asio'
  socket_.set_option(asio::ip::tcp::no_delay(true));
                     ^
prog.cc:31:13: error: exception specification in declaration does not match previous declaration
connection::~connection()
            ^
prog.cc:10:3: note: previous declaration is here
  ~connection();
  ^
prog.cc:33:3: error: use of undeclared identifier 'std'
  std::cout << "connection closed: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
  ^
prog.cc:33:41: error: use of undeclared identifier 'std'
  std::cout << "connection closed: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                        ^
prog.cc:33:53: error: use of undeclared identifier 'std'
  std::cout << "connection closed: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                                    ^
prog.cc:33:95: error: use of undeclared identifier 'std'
  std::cout << "connection closed: " << std::hex << std::setw(sizeof(nullptr) * 2) << this << std::endl;
                                                                                              ^
prog.cc:38:10: error: member access into incomplete type 'stamp::server'
  server_.add(shared_from_this());
         ^
prog.cc:5:7: note: forward declaration of 'stamp::server'
class server;
      ^
prog.cc:44:10: error: member access into incomplete type 'stamp::server'
  server_.remove(shared_from_this());
         ^
prog.cc:5:7: note: forward declaration of 'stamp::server'
class server;
      ^
prog.cc:58:16: error: use of undeclared identifier 'std'
  server(const std::string& address, const std::string& service);
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Exit Code:
1