Closed lkeegan closed 1 year ago
mingw compile error:
[ 91%] Linking CXX static library libbenchmark.a [ 91%] Built target benchmark [ 95%] Building CXX object src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.obj In file included from D:/a/sme_deps_common/sme_deps_common/benchmark/src/benchmark_main.cc:15: D:/a/sme_deps_common/sme_deps_common/benchmark/include/benchmark/benchmark.h:901:37: error: 'bool benchmark::State::KeepRunningInternal(benchmark::IterationCount, bool)' redeclared without dllimport attribute after being referenced with dll linkage [-Werror] 901 | inline BENCHMARK_ALWAYS_INLINE bool State::KeepRunningInternal(IterationCount n, | ^~~~~ D:/a/sme_deps_common/sme_deps_common/benchmark/include/benchmark/benchmark.h:1547:7: error: 'int main(int, char**)' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes] 1547 | int main(int argc, char** argv) { \ | ^~~~ D:/a/sme_deps_common/sme_deps_common/benchmark/src/benchmark_main.cc:18:1: note: in expansion of macro 'BENCHMARK_MAIN' 18 | BENCHMARK_MAIN(); | ^~~~~~~~~~~~~~ cc1plus.exe: all warnings being treated as errors make[2]: *** [src/CMakeFiles/benchmark_main.dir/build.make:77: src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:126: src/CMakeFiles/benchmark_main.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
fixed in 1.7.1
mingw compile error: