title: Visual Studio Code cannot finde g++ compiler on linux
body: <p>Does anyone knows why vs-code can't find c++ compiler. I have used vc-code for several months without any problems, but suddenly without any clear reason it can't find the compiler anymore!! does somebody here can figure out what could be causing this.</p>
  
  <p>tasks.json</p>
  
  <pre><code>    {
      "version": "2.0.0",
      "tasks": [
          {
              "label": "echo",
              "type": "shell",
              "command":"g++ $(pkg-config --cflags --libs opencv gl glew sdl2)",
              "args": ["-g", "${workspaceFolder}/*.cpp", "-lstdc++fs", "-pthread"],
               "group":{
                  "kind": "build",
                  "isDefault": true
              }
          }
      ]
  }
  </code></pre>
  
  <p>c_cpp_properties.json</p>
  
  <pre><code>{
      "configurations": [
  
          {
              "name": "Linux",
              "includePath": [
                  "${workspaceFolder}",
                  "/usr/include/c++/6.3.0",
                  "/usr/include/c++/6",
                  "/usr/include/x86_64-linux-gnu/c++/6",
                  "/usr/include/c++/6/backward",
                  "/usr/lib/gcc/x86_64-linux-gnu/6/include",
                  "/usr/local/include",
                  "/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed",
                  "/usr/include/x86_64-linux-gnu",
                  "/usr/include",
                  "/usr/bin"
              ],
              "defines": [],
              "intelliSenseMode": "clang-x64",
              "browse": {
                  "path": [
                      "${workspaceFolder}",
                      "/usr/include/c++/6.3.0",
                      "/usr/include/c++/6",
                      "/usr/include/x86_64-linux-gnu/c++/6",
                      "/usr/include/c++/6/backward",
                      "/usr/lib/gcc/x86_64-linux-gnu/6/include",
                      "/usr/local/include",
                      "/usr/lib/gcc/x86_64-linux-gnu/6/include-fixed",
                      "/usr/include/x86_64-linux-gnu",
                      "/usr/include",
                      "/usr/bin"
                  ],
                  "limitSymbolsToIncludedHeaders": true,
                  "databaseFilename": ""
              },
              "compilerPath": "/usr/bin/gcc",
              "cStandard": "c11",
              "cppStandard": "c++17"
          }
      ],
      "version": 3
  }
  </code></pre>
  
  <p>output</p>
  
  <pre><code>/bin/bash: g++ $(pkg-config --cflags --libs opencv gl glew sdl2): command not found
  </code></pre>
  
  <p><strong>NOTE:</strong> I still can use g++ to compile files in the integrated terminal in vs-code, but it cannot be recognized by tasks.json !!!</p>