Firstly, Let me explain briefly the environment :
- Windows x64 Platform - Windows 10 1803 (build 17134.81)
- Windows Linux Subsystem - Ubuntu 18.04 (via Windows Store)
- GCC version installed on WSL - GCC 8.0
- Clang version installed on WSL - Clang 6.0
- Intel Parallel Studio Version - Intel Parallel Studio XE 2018 update 2
I tried to compile and run simple dummy C++ program with std::thread and underC++17 standard flag. The code example is given below:
#include<iostream> #include<vector> #include<thread> void foo() { std::cout<<"OKAY"<<std::endl; } int main() { std::vector<int> x={1,2,3}; auto y = x.capacity(); std::thread t(foo); t.join(); std::cout<<y<<std::endl; return 0; }
the following images shows relevant information:
Errors occurred: