title: VSCode: 'thread' is not a member of 'std'
body: <p>I copy this code and compile it but I got some error </p>
  
  <pre><code>#include &lt;thread&gt;
  #include &lt;iostream&gt;
  
  struct F
  {
    void operator() () const
    {
      std::cout&lt;&lt;"Printing from another thread"&lt;&lt;std::endl;
    }
  };
  
  int main()
  {
    F f;
    std::thread t(f);
    t.join();
  
    return 0;
  }
  </code></pre>
  
  <p>Error:
  <code>'thread' is not a member of 'std'</code></p>
  
  <p>But I have added "includePath" well and "defines" in "c_cpp_properties.json" so I don't know why the errors exists.</p>
  
  <p>The "c_cpp_properties.json" is like this:</p>
  
  <pre><code>{
      "configurations": [
          {
              "name": "Win32",
              "includePath": [
                  "${workspaceRoot}",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/backward",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/include",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/../../../../include",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed",
                  "C:/MinGW/lib/gcc/mingw32/6.3.0/../../../../mingw32/include"
              ],
              "defines": [
                  "_DEBUG",
                  "UNICODE",
                  "__cdecl=__attribute__((__cdecl__))"
              ],
              "intelliSenseMode": "clang-x64",
              "browse": {
                  "path": [
                      "${workspaceRoot}",
                      "C:/MinGW/lib/gcc/mingw32/6.3.0/include/",
                      "C:/MinGW/lib/gcc/mingw32/6.3.0/../../../../include",
                      "C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed"
                  ],
                  "limitSymbolsToIncludedHeaders": true,
                  "databaseFilename": ""
              },
              "compilerPath": "C:/mingw64/bin/g++.exe",
              "cStandard": "c11",
              "cppStandard": "c++11"
          }
      ],
      "version": 4
  }
  </code></pre>
  
  <p>And "settings.json" is like this (code-runner)</p>
  
  <pre><code>{
      "git.autofetch": true,
      "editor.wordWrap": "on",
      "editor.suggestSelection": "first",
      "java.home": "C:/Program Files/Java/jdk1.8.0_201/",
      "workbench.settings.editor": "ui",
      "code-runner.executorMap": {
          "javascript": "node",
          "java": "cd $dir &amp;&amp; javac $fileName &amp;&amp; java $fileNameWithoutExt",
          "c": "cd $dirWithoutTrailingSlash &amp;&amp; gcc $fileName -g -o $fileNameWithoutExt &amp;&amp; ./$fileNameWithoutExt.exe",
  
          // 
          //"cpp": "cd $dirWithoutTrailingSlash &amp;&amp; g++ $fileName -g -o $fileNameWithoutExt &amp;&amp; ./$fileNameWithoutExt.exe &lt; d.dat",
  
          "cpp": "cd $dirWithoutTrailingSlash &amp;&amp; g++ $fileName -g -o $fileNameWithoutExt &amp;&amp; $fileNameWithoutExt.exe",
          "objective-c": "cd $dir &amp;&amp; gcc -framework Cocoa $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt",
          "php": "php",
          "python": "python",
          "perl": "perl",
          "perl6": "perl6",
          "ruby": "ruby",
          "go": "go run",
          "lua": "lua",
          "groovy": "groovy",
          "powershell": "powershell -ExecutionPolicy ByPass -File",
          "bat": "cmd /c",
          "shellscript": "bash",
          "fsharp": "fsi",
          "csharp": "scriptcs",
          "vbscript": "cscript //Nologo",
          "typescript": "ts-node",
          "coffeescript": "coffee",
          "scala": "scala",
          "swift": "swift",
          "julia": "julia",
          "crystal": "crystal",
          "ocaml": "ocaml",
          "r": "Rscript",
          "applescript": "osascript",
          "clojure": "lein exec",
          "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
          "rust": "cd $dir &amp;&amp; rustc $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "racket": "racket",
          "ahk": "autohotkey",
          "autoit": "autoit3",
          "dart": "dart",
          "pascal": "cd $dir &amp;&amp; fpc $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "d": "cd $dir &amp;&amp; dmd $fileName &amp;&amp; $dir$fileNameWithoutExt",
          "haskell": "runhaskell",
          "nim": "nim compile --verbosity:0 --hints:off --run"
      },
      "code-runner.runInTerminal": true,
      "files.exclude": {
          "**/.classpath": true,
          "**/.project": true,
          "**/.settings": true,
          "**/.factorypath": true
      },
      "java.errors.incompleteClasspath.severity": "ignore",
  }
  </code></pre>
  
  <p>Is the cpp compile way set in settings.json wrong? 
  If I change cpp compile method in json file to comment, when I press ctrl+alt+n, it is going the way it was setup.</p>
  
  <p>Or is it better to install pthread?</p>