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

Compilation failed in mingw 8.1 #123

Open
homuraLan opened this issue Jan 5, 2025 · 0 comments
Open

Compilation failed in mingw 8.1 #123

homuraLan opened this issue Jan 5, 2025 · 0 comments

Comments

@homuraLan
Copy link

(base) PS E:\GitLab\cpp_redis> cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="E:/GitLab/cpp_redis" .
CMake Deprecation Warning at CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Deprecation Warning at tacopie/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: E:/GitLab/cpp_redis
(base) PS E:\GitLab\cpp_redis> mingw32-make install
[  4%] Building CXX object tacopie/CMakeFiles/tacopie.dir/sources/network/io_service.cpp.obj
In file included from E:/GitLab/cpp_redis/tacopie/includes/tacopie/network/io_service.hpp:42,
                 from E:\GitLab\cpp_redis\tacopie\sources\network\io_service.cpp:23:
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:18: error: 'thread' is not a member of 'std'
   std::list<std::thread> m_workers;
                  ^~~~~~
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:18: note: 'std::thread' is defined in header '<thread>'; did you forget to '#include <thread>'?
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:31:1:
+#include <thread>
 #include <thread>
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:18:
   std::list<std::thread> m_workers;
                  ^~~~~~
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:18: error: 'thread' is not a member of 'std'
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:18: note: 'std::thread' is defined in header '<thread>'; did you forget to '#include <thread>'?
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:24: error: template argument 1 is invalid
   std::list<std::thread> m_workers;
                        ^
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:134:24: error: template argument 2 is invalid
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:159:8: error: 'mutex' in namespace 'std' does not name a type
   std::mutex m_tasks_mtx;
        ^~~~~
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:159:3: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:31:1:
+#include <mutex>
 #include <thread>
E:/GitLab/cpp_redis/tacopie/includes/tacopie/utils/thread_pool.hpp:159:3:
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