Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. max@2[~/Desktop/inf/autohost2]$ make
  2. g++ -c -Wall -Ilibdiscord/libdiscord/include -std=c++14 -o main.o main.cpp
  3. main.cpp: In function ‘int main()’:
  4. main.cpp:11:32: error: use of deleted function ‘discord::Bot::Bot(const discord::Bot&)’
  5. auto bot = discord::Bot(token);
  6. ^
  7. In file included from libdiscord/libdiscord/include/discord.h:3:0,
  8. from main.cpp:1:
  9. libdiscord/libdiscord/include/bot.h:23:9: note: ‘discord::Bot::Bot(const discord::Bot&)’ is implicitly deleted because the default definition would be ill-formed:
  10. class Bot
  11. ^~~
  12. libdiscord/libdiscord/include/bot.h:23:9: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = discord::ConnectionState; _Dp = std::default_delete<discord::ConnectionState>]’
  13. In file included from /usr/include/c++/7/memory:80:0,
  14. from libdiscord/libdiscord/include/easylogging++.h:373,
  15. from libdiscord/libdiscord/include/common.h:3,
  16. from libdiscord/libdiscord/include/bot.h:5,
  17. from libdiscord/libdiscord/include/discord.h:3,
  18. from main.cpp:1:
  19. /usr/include/c++/7/bits/unique_ptr.h:383:7: note: declared here
  20. unique_ptr(const unique_ptr&) = delete;
  21. ^~~~~~~~~~
  22. main.cpp:13:6: error: base operand of ‘->’ has non-pointer type ‘discord::Bot’
  23. bot->on_message([](discord::MessageEvent& event) {
  24. ^~
  25. main.cpp:19:6: error: base operand of ‘->’ has non-pointer type ‘discord::Bot’
  26. bot->run();
  27. ^~
  28. Makefile:14: recipe for target 'main.o' failed
  29. make: *** [main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement