Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- build@students1804:~/NetworksLab2018AU/messenger/linux_client$ cmake .
- -- The C compiler identification is GNU 7.3.0
- -- The CXX compiler identification is GNU 7.3.0
- -- Check for working C compiler: /usr/bin/cc
- -- Check for working C compiler: /usr/bin/cc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Check for working CXX compiler: /usr/bin/c++
- -- Check for working CXX compiler: /usr/bin/c++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /home/build/NetworksLab2018AU/messenger/linux_client
- build@students1804:~/NetworksLab2018AU/messenger/linux_client$ make
- Scanning dependencies of target tcp_client
- [ 33%] Building CXX object CMakeFiles/tcp_client.dir/main.cpp.o
- [ 66%] Building CXX object CMakeFiles/tcp_client.dir/client.cpp.o
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp: In constructor ‘elegram::client::client(const char*, uint16_t, const char*)’:
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:13:23: error: ‘strlen’ was not declared in this scope
- _login = new char[strlen(login) + 1];
- ^~~~~~
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:13:23: note: suggested alternative: ‘mbrlen’
- _login = new char[strlen(login) + 1];
- ^~~~~~
- mbrlen
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:14:5: error: ‘strcpy’ was not declared in this scope
- strcpy(_login, login);
- ^~~~~~
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:14:5: note: suggested alternative: ‘stop’
- strcpy(_login, login);
- ^~~~~~
- stop
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp: In member function ‘void elegram::client::send_message(const char*)’:
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:34:46: error: ‘strlen’ was not declared in this scope
- auto buffer_size = static_cast<uint32_t>(strlen(msg) + strlen(_login) + 2 + 2 * sizeof(uint32_t));
- ^~~~~~
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:34:46: note: suggested alternative: ‘mbrlen’
- auto buffer_size = static_cast<uint32_t>(strlen(msg) + strlen(_login) + 2 + 2 * sizeof(uint32_t));
- ^~~~~~
- mbrlen
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:42:5: error: ‘strcpy’ was not declared in this scope
- strcpy(buffer + offset, _login);
- ^~~~~~
- /home/build/NetworksLab2018AU/messenger/linux_client/client.cpp:42:5: note: suggested alternative: ‘stop’
- strcpy(buffer + offset, _login);
- ^~~~~~
- stop
- CMakeFiles/tcp_client.dir/build.make:86: recipe for target 'CMakeFiles/tcp_client.dir/client.cpp.o' failed
- make[2]: *** [CMakeFiles/tcp_client.dir/client.cpp.o] Error 1
- CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/tcp_client.dir/all' failed
- make[1]: *** [CMakeFiles/tcp_client.dir/all] Error 2
- Makefile:83: recipe for target 'all' failed
- make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment