csv-parser
csv-parser copied to clipboard
Windows 10 mutex
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:
-
error: 'mutex' in namespace 'std' does not name a type std::mutex _lock; (csv-parser\include\internal\basic_csv_parser.hpp:177:18)
-
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.
Sounds like a missing #include
as the compiler indicates. I'll take a look.
If you're using MinGW with win32 threads, it just can't work. Use MinGW with posix threads.