Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max@2[~/Desktop/inf/autohost2]$ make
- g++ -c -Wall -Ilibdiscord/libdiscord/include -std=c++14 -o main.o main.cpp
- main.cpp: In function ‘int main()’:
- main.cpp:11:32: error: use of deleted function ‘discord::Bot::Bot(const discord::Bot&)’
- auto bot = discord::Bot(token);
- ^
- In file included from libdiscord/libdiscord/include/discord.h:3:0,
- from main.cpp:1:
- 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:
- class Bot
- ^~~
- 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>]’
- In file included from /usr/include/c++/7/memory:80:0,
- from libdiscord/libdiscord/include/easylogging++.h:373,
- from libdiscord/libdiscord/include/common.h:3,
- from libdiscord/libdiscord/include/bot.h:5,
- from libdiscord/libdiscord/include/discord.h:3,
- from main.cpp:1:
- /usr/include/c++/7/bits/unique_ptr.h:383:7: note: declared here
- unique_ptr(const unique_ptr&) = delete;
- ^~~~~~~~~~
- main.cpp:13:6: error: base operand of ‘->’ has non-pointer type ‘discord::Bot’
- bot->on_message([](discord::MessageEvent& event) {
- ^~
- main.cpp:19:6: error: base operand of ‘->’ has non-pointer type ‘discord::Bot’
- bot->run();
- ^~
- Makefile:14: recipe for target 'main.o' failed
- make: *** [main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement