title: How do I make sure that a declaration has a storage class or type specifier in C++ when using boost's program_options?
body: <p>I am just beginning to learn about Boost for C++. I was following an example that uses the "program_options" library from boost. Below is my code. I am using Visual Studio and have already built the boost libraries that need building, added boost to the additional <code>include</code> directory, and added boost to the additional linker directories. </p>
  
  <p>The issue is with <code>desc.add_options()</code>. Visual Studio says that this declaration has no storage class or type specifier. I am unsure of what that means and how to fix it. I have looked for solutions, but I have come up empty handed. Any help would be awesome. Thanks!</p>
  
  <pre><code>#include &lt;boost/program_options.hpp&gt;
  #include &lt;iostream&gt;
  
  namespace opt = boost::program_options;
  
  opt::options_description desc("All options");
  
  
  desc.add_options()
      ("apples", opt::value&lt;int&gt;(), "how many apples do you have")
      ("oranges", opt::value&lt;int&gt;(), "how many oranges do you have")
  ;
  </code></pre>