无法在Windows(Win10 64位)上构建meta-toolkit。我按照https://meta-toolkit.org/setup-guide.html#windows-build-guide
上的说明进行操作Scanning dependencies of target feature-summary
[ 59%] Building CXX object src/features/tools/CMakeFiles/feature-summary.dir/feature_summary.cpp.obj
In file included from C:/some/other/path/msys64/mingw64/include/c++/8.2.1/bits/stl_algobase.h:66,
from C:/some/other/path/msys64/mingw64/include/c++/8.2.1/algorithm:61,
from C:/some/path/meta-toolkit/meta/deps/cpptoml/include/cpptoml.h:10,
from C:/some/path/meta-toolkit/meta/src/features/tools/feature_summary.cpp:10:
...
C:/some/path/meta-toolkit/meta/src/features/tools/feature_summary.cpp:51:61: required from here
C:/some/other/path/msys64/mingw64/include/c++/8.2.1/bits/stl_iterator_base_funcs.h:183:2: error: no match for 'operator--' (operand type is 'meta::learn::dataset_view::iterator')
--__i;
^~~~~
make[2]: *** [src/features/tools/CMakeFiles/feature-summary.dir/build.make:63: src/features/tools/CMakeFiles/feature-summary.dir/feature_summary.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1406: src/features/tools/CMakeFiles/feature-summary.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
快速搜索此错误消息似乎意味着(在其他地方,在不相关的代码中)指针与对象之间不匹配C++ Error: No match for 'operator='
答案 0 :(得分:2)
将"--__i"
替换为"__i = __i -1"
这对我有用! :)