title: Fast way to identify necessary includes for C++
body: <p>On Linux, what is a fast way to identify what are the necessary <code>#include</code> statements that I need for a C++ project? </p>
  
  <p>I mean, let's say someone gives you a snippet from the web, but fails to provide the necessary #include statements. Is there potentially a way where you can run a Linux command or compiler command option and identify which functions or classes are missing, and, as a bonus, identify on the hard drive where I might have these things in a header file.</p>