artyom_h31

Untitled

May 22nd, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. build@students1804:~/NetworksLab2018AU/messenger/linux_client$ cmake .
  2. -- The C compiler identification is GNU 7.3.0
  3. -- The CXX compiler identification is GNU 7.3.0
  4. -- Check for working C compiler: /usr/bin/cc
  5. -- Check for working C compiler: /usr/bin/cc -- works
  6. -- Detecting C compiler ABI info
  7. -- Detecting C compiler ABI info - done
  8. -- Detecting C compile features
  9. -- Detecting C compile features - done
  10. -- Check for working CXX compiler: /usr/bin/c++
  11. -- Check for working CXX compiler: /usr/bin/c++ -- works
  12. -- Detecting CXX compiler ABI info
  13. -- Detecting CXX compiler ABI info - done
  14. -- Detecting CXX compile features
  15. -- Detecting CXX compile features - done
  16. -- Configuring done
  17. -- Generating done
  18. -- Build files have been written to: /home/build/NetworksLab2018AU/messenger/linux_client
  19. build@students1804:~/NetworksLab2018AU/messenger/linux_client$ make
  20. Scanning dependencies of target tcp_client
  21. [ 33%] Building CXX object CMakeFiles/tcp_client.dir/main.cpp.o
  22. [ 66%] Building CXX object CMakeFiles/tcp_client.dir/client.cpp.o
  23. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp: In constructor ‘elegram::client::client(const char*, uint16_t, const char*)’:
  24. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:13:23: error: ‘strlen’ was not declared in this scope
  25. _login = new char[strlen(login) + 1];
  26. ^~~~~~
  27. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:13:23: note: suggested alternative: ‘mbrlen’
  28. _login = new char[strlen(login) + 1];
  29. ^~~~~~
  30. mbrlen
  31. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:14:5: error: ‘strcpy’ was not declared in this scope
  32. strcpy(_login, login);
  33. ^~~~~~
  34. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:14:5: note: suggested alternative: ‘stop’
  35. strcpy(_login, login);
  36. ^~~~~~
  37. stop
  38. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp: In member function ‘void elegram::client::send_message(const char*)’:
  39. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:34:46: error: ‘strlen’ was not declared in this scope
  40. auto buffer_size = static_cast<uint32_t>(strlen(msg) + strlen(_login) + 2 + 2 * sizeof(uint32_t));
  41. ^~~~~~
  42. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:34:46: note: suggested alternative: ‘mbrlen’
  43. auto buffer_size = static_cast<uint32_t>(strlen(msg) + strlen(_login) + 2 + 2 * sizeof(uint32_t));
  44. ^~~~~~
  45. mbrlen
  46. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:42:5: error: ‘strcpy’ was not declared in this scope
  47. strcpy(buffer + offset, _login);
  48. ^~~~~~
  49. /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:42:5: note: suggested alternative: ‘stop’
  50. strcpy(buffer + offset, _login);
  51. ^~~~~~
  52. stop
  53. CMakeFiles/tcp_client.dir/build.make:86: recipe for target 'CMakeFiles/tcp_client.dir/client.cpp.o' failed
  54. make[2]: *** [CMakeFiles/tcp_client.dir/client.cpp.o] Error 1
  55. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/tcp_client.dir/all' failed
  56. make[1]: *** [CMakeFiles/tcp_client.dir/all] Error 2
  57. Makefile:83: recipe for target 'all' failed
  58. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment