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

Windows 10 mutex #150

Open
chegrane opened this issue Feb 18, 2021 · 2 comments
Open

Windows 10 mutex #150

chegrane opened this issue Feb 18, 2021 · 2 comments
Labels

Comments

@chegrane
Copy link

chegrane commented Feb 18, 2021

Using Windows 10
Clion (Cmake) with: CMAKE_CXX_STANDARD 17 and cmake_minimum_required(VERSION 3.15).

At the compile time : several error related to mutex:

  1. error: 'mutex' in namespace 'std' does not name a type std::mutex _lock; (csv-parser\include\internal\basic_csv_parser.hpp:177:18)

  2. note: 'std::mutex' is defined in header ''; did you forget to '#include '? #include "csv_row.hpp" (csv-parser\include\internal\basic_csv_parser.hpp:23:1:)

... etc.

Other errors related to : std::condition_variable and unlock

Note: I tested the same code on Linux Ubuntu 16.04 and it works very well. so the problem is with windows.

@vincentlaucsb
Copy link
Owner

Sounds like a missing #include as the compiler indicates. I'll take a look.

@SpaceIm
Copy link

SpaceIm commented Jul 31, 2021

If you're using MinGW with win32 threads, it just can't work. Use MinGW with posix threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants