title: How to compile and build C++17 code with Visual studio 2017 Linux support?
body: <p><a href="https://i.stack.imgur.com/x37Bd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x37Bd.jpg" alt="Raspberry Pi project with VS2017"></a></p>
  
  <p>Please can someone explain how to compile and build <strong>C++ Blink Project</strong>(Linux/Raspberry PI Project in VS2017 15.5.5) code with -std=c++1z or -std=c++17 (g++),I have raspberry 3 model B set up and latest raspbian OS, I successfully connected and build my code and run with C++11/C++14 standard (default configured),</p>
  
  <p><a href="https://i.stack.imgur.com/kKt3K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kKt3K.png" alt="Default standard provided"></a></p>
  
  <p>but I want to implement C++17 features with my code such as <strong>std::variants/optional</strong> so on.</p>
  
  <p>I think current gcc environment set up with VS2017 not supported std::c++17,I added these parameters as project C/C++ -> Command line argument,but required headers and compiler support wasn’t there.</p>
  
  <p><a href="https://i.stack.imgur.com/gbaq7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gbaq7.jpg" alt="Enabling C++17/Latest support"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8P0VL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8P0VL.jpg" alt="Expected compile error"></a></p>
  
  <p>How can I compile and build my C++17 standard code into raspbian/Raspberry Pi system using VS2017 Crossplatform(Linux) build system with external GCC/G++ compiler which supports latest standard (std=c++latest) ?</p>
  
  <p>Thank you.</p>