Skip to content

Compilation failed in mingw 8.1 #123

@homuraLan

Description

@homuraLan
(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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions