Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when compiling #1

Open
MGlolenstine opened this issue Oct 4, 2019 · 1 comment
Open

Problem when compiling #1

MGlolenstine opened this issue Oct 4, 2019 · 1 comment

Comments

@MGlolenstine
Copy link

MGlolenstine commented Oct 4, 2019

$ make
clang++ -std=c++14 -fPIC -O2 -I/usr/include/jsoncpp -Ilib/mclib/mclib/include   -c -o avalanche/behavior/attack/AttackCreativeWorldLag.o avalanche/behavior/attack/AttackCreativeWorldLag.cpp
avalanche/behavior/attack/AttackCreativeWorldLag.cpp:69:35: error: no viable overloaded operator[] for type 'const Json::Value'
    auto&& methodNode = attackNode["method"];
                        ~~~~~~~~~~^~~~~~~~~
avalanche/behavior/attack/AttackCreativeWorldLag.cpp:73:40: error: no viable overloaded operator[] for type 'const Json::Value'
    auto&& sendPerTickNode = attackNode["send-per-tick"];
                             ~~~~~~~~~~^~~~~~~~~~~~~~~~
avalanche/behavior/attack/AttackCreativeWorldLag.cpp:77:37: error: no viable overloaded operator[] for type 'const Json::Value'
    auto&& positionNode = attackNode["position"];
                          ~~~~~~~~~~^~~~~~~~~~~
In file included from avalanche/behavior/attack/AttackCreativeWorldLag.cpp:1:
In file included from avalanche/behavior/attack/AttackCreativeWorldLag.h:4:
In file included from avalanche/behavior/attack/../Behavior.h:4:
In file included from avalanche/behavior/attack/../../Factory.h:5:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/memory:80:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/bits/unique_ptr.h:81:2: warning: delete called on 'avalanche::PositionProvider' that is abstract but has
      non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
        delete __ptr;
        ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/bits/unique_ptr.h:289:4: note: in instantiation of member function
      'std::default_delete<avalanche::PositionProvider>::operator()' requested here
          get_deleter()(std::move(__ptr));
          ^
avalanche/behavior/attack/AttackCreativeWorldLag.cpp:11:25: note: in instantiation of member function 'std::unique_ptr<avalanche::PositionProvider,
      std::default_delete<avalanche::PositionProvider> >::~unique_ptr' requested here
AttackCreativeWorldLag::AttackCreativeWorldLag(mc::core::Client* client, mc::protocol::Version version)
                        ^
1 warning and 3 errors generated.
make: *** [<builtin>: avalanche/behavior/attack/AttackCreativeWorldLag.o] Error 1
@ghost
Copy link

ghost commented May 25, 2022

Are you using Linux?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant