title: c++ compiler flags in visual studio
body: <p>I'm taking a MOOC course on data structures and algorithm. I would like to use c++, and I need to set my compiler options to the following </p>
  
  <p>g++ -pipe -O2 -std=c++14  -lm </p>
  
  <p>I'm currently using MS Visual Studio 2017 on Windows. Is it even possible? Do I need to do custom build? The following is the paragraph taken from  the MOOC mentions about Windows users having to use Cygwin, but I have no clue what that means. Can anybody shed some light on a feasible way to do this? </p>
  
  <blockquote>
    <p>Your solution will be compiled as follows. We recommend that when
    testing your solution locally, you use the same compiler flags for
    compiling. This will increase the chances that your program behaves in
    the same way on your machine and on the testing machine (note that a
    buggy program may behave differently when compiled by different
    compilers, or even by the same compiler with different flags).</p>
    
    <p>C++ (g++ 5.2.1). File extensions: .cc, .cpp. Flags</p>
    
    <p><strong>g++ -pipe -O2 -std=c++14  -lm</strong></p>
    
    <p>If your C/C++ compiler does not recognize the "-std=c++14" flag, try
    replacing it with "-std=c++11" or "-std=c++0x" flag or compiling
    without this flag at all (all starter solutions can be compiled
    without it). On Linux and MacOS, you probably have the required
    compiler. On Windows, you may use your favorite compiler or install an
    environment such as cygwin.</p>
  </blockquote>