Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weegee@sirius /tmp/nirc $ LC_ALL=C g++ -o server server_main.cpp debug.cpp socket.cpp -lsocket -Wall -pedantic
- In file included from socket.h:4:0,
- from server_main.cpp:1:
- debug.h:13:22: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
- debug.h:10:28: warning: 'dbg::ERROR_ALLOCATION_FAILED' defined but not used [-Wunused-variable]
- debug.h:14:21: warning: 'void dbg::_log(int, const char*, const char*, const char*, ...)' declared 'static' but never defined [-Wunused-function]
- socket.h:24:28: warning: 'dbg::ERROR_INVALID_FAMILY' defined but not used [-Wunused-variable]
- socket.h:25:28: warning: 'dbg::ERROR_BAD_SOCKET' defined but not used [-Wunused-variable]
- socket.h:26:28: warning: 'dbg::ERROR_BIND_FAILED' defined but not used [-Wunused-variable]
- socket.h:27:28: warning: 'dbg::ERROR_ACCEPT_FAILED' defined but not used [-Wunused-variable]
- socket.h:28:28: warning: 'dbg::ERROR_READ_FAILED' defined but not used [-Wunused-variable]
- socket.h:29:28: warning: 'dbg::ERROR_WRITE_FAILED' defined but not used [-Wunused-variable]
- socket.h:30:28: warning: 'dbg::ERROR_NO_BUFFER' defined but not used [-Wunused-variable]
- socket.h:31:28: warning: 'dbg::ERROR_BUFFER_TOO_SMALL' defined but not used [-Wunused-variable]
- socket.h:32:28: warning: 'dbg::ERROR_CONNECT_FAILED' defined but not used [-Wunused-variable]
- In file included from debug.cpp:1:0:
- debug.h:13:22: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
- debug.cpp: In function 'const char* basename(const char*)':
- debug.cpp:3:42: error: declaration of 'const char* basename(const char*)' has a different exception specifier
- /usr/include/string.h:603:28: error: from previous declaration 'const char* basename(const char*) throw ()'
- debug.h: At global scope:
- debug.h:10:28: warning: 'dbg::ERROR_ALLOCATION_FAILED' defined but not used [-Wunused-variable]
- debug.cpp:12:10: warning: 'void dbg::_log(int, const char*, const char*, const char*, ...)' defined but not used [-Wunused-function]
- In file included from socket.h:4:0,
- from socket.cpp:1:
- debug.h:13:22: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
- socket.h: In constructor 'nirc_socket::nirc_socket()':
- socket.h:44:17: warning: 'nirc_socket::handle' will be initialized after [-Wreorder]
- socket.h:41:17: warning: 'int nirc_socket::address_family' [-Wreorder]
- socket.cpp:3:5: warning: when initialized here [-Wreorder]
- socket.cpp: In static member function 'static void nirc_socket::init()':
- socket.cpp:21:9: error: 'WORD' was not declared in this scope
- socket.cpp:21:9: error: expected ';' before 'wVersion'
- socket.cpp:21:9: error: 'WSADATA' was not declared in this scope
- socket.cpp:21:9: error: expected ';' before 'wsaData'
- socket.cpp:21:9: error: 'wVersion' was not declared in this scope
- socket.cpp:21:9: error: 'MAKEWORD' was not declared in this scope
- socket.cpp:21:9: error: 'wsaData' was not declared in this scope
- socket.cpp:21:9: error: 'WSAStartup' was not declared in this scope
- socket.cpp: In member function 'void nirc_client::read()':
- socket.cpp:138:18: error: '::read' has not been declared
- socket.cpp: In member function 'void nirc_client::read(unsigned int)':
- socket.cpp:158:18: error: '::read' has not been declared
- socket.cpp: In member function 'void nirc_client::set_buffer(unsigned int)':
- socket.cpp:179:63: error: 'malloc' was not declared in this scope
- socket.cpp:181:78: error: 'realloc' was not declared in this scope
- socket.cpp: In member function 'void nirc_socket::close()':
- socket.cpp:213:9: error: '::close' has not been declared
- socket.cpp: In member function 'void nirc_server::accept()':
- socket.cpp:243:90: error: invalid conversion from 'int*' to 'socklen_t*' [-fpermissive]
- debug.h: At global scope:
- debug.h:12:22: warning: 'dbg::log_file' defined but not used [-Wunused-variable]
- debug.h:14:21: warning: 'void dbg::_log(int, const char*, const char*, const char*, ...)' declared 'static' but never defined [-Wunused-function]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement