You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just cloned this repo and got this error doing sudo make install.
meson build
Directory already configured.
Just run your build command (e.g. ninja) and Meson will regenerate as necessary.
If ninja fails, run "ninja reconfigure" or "meson --reconfigure"
to force Meson to regenerate.
If build failures persist, run "meson setup --wipe" to rebuild from scratch
using the same options as passed when configuring the build.
To change option values, run "meson configure" instead.
ninja -C build
ninja: Entering directory `build'
[1/2] Compiling C++ object interception-vimproved.p/interception-vimproved.cpp.o
FAILED: interception-vimproved.p/interception-vimproved.cpp.o
c++ -Iinterception-vimproved.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g --std=c++2b -O3 -g -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter -Wno-type-limits -MD -MQ interception-vimproved.p/interception-vimproved.cpp.o -MF interception-vimproved.p/interception-vimproved.cpp.o.d -o interception-vimproved.p/interception-vimproved.cpp.o -c ../interception-vimproved.cpp
../interception-vimproved.cpp:100:7: error: ‘class Intercept’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
100 | class Intercept {
| ^~~~~~~~~
../interception-vimproved.cpp:141:7: error: base class ‘class Intercept’ has accessible non-virtual destructor [-Werror=non-virtual-dtor]
141 | class Modifier : public Intercept {
| ^~~~~~~~
../interception-vimproved.cpp:141:7: error: ‘class Modifier’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
../interception-vimproved.cpp:172:7: error: base class ‘class Intercept’ has accessible non-virtual destructor [-Werror=non-virtual-dtor]
172 | class Layer : public Intercept {
| ^~~~~
../interception-vimproved.cpp:172:7: error: ‘class Layer’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make: *** [Makefile:17: build] Error 1
I was able to solve this by adding a virtual default destructor to Intercept:
I just cloned this repo and got this error doing
sudo make install
.I was able to solve this by adding a virtual default destructor to
Intercept
:interception-vimproved: 019e337
cmake: cmake version 3.25.1
ninja: 1.10.1
The text was updated successfully, but these errors were encountered: