gpt4 book ai didi

compiler-errors - 编译错误: no match for 'operator--'

转载 作者:行者123 更新时间:2023-12-04 06:58:19 33 4
gpt4 key购买 nike

无法在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='

最佳答案

"--__i"替换"__i = __i -1"C:\some\path\msys64\mingw64\include\c++\9.2.0\bits\stl_iterator_base_funcs.h文件的第183行中。

这对我有用! :)

关于compiler-errors - 编译错误: no match for 'operator--' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53695726/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com