title: C++ library in using boost library
body: <p>I wrote a test.cpp:</p>
  
  <pre><code>      #include &lt;iostream&gt;
        #include &lt;stack&gt;
        #include &lt;boost/lexical_cast.hpp&gt;
        #include &lt;boost/config/warning_disable.hpp&gt;
        #include &lt;boost/spirit/include/qi.hpp&gt;
        #include &lt;boost/spirit/include/phoenix.hpp&gt;
  
        using namespace std;
        namespace phoenix = boost::phoenix;
        namespace qi = boost::spirit::qi;
        namespace ascii = boost::spirit::ascii;
  
       struct calculator
       {
        bool interpret(const string&amp; s);
        void do_neg();
        void do_add();
         void do_sub();
        void do_mul();
          void do_div();
          void do_number(const char* first, const char* last);
            int val() const;
        private:
        stack&lt;int&gt; values_;
        int *pn1_, n2_;
        void pop_1();
        void pop_2();
        };
       ......................
       ....................
  </code></pre>
  
  <p>But when I use g++ test.cpp -o test, there are errors like <code>boost/lexical_cast.hpp: No such file or directory</code>, but I have copy all of files in boost (download from boost.org) to the test.cpp folder, how to make g++ know the headers paths? Thanks</p>
  
  <p>I used <code>g++ test.cpp -o test</code></p>
  
  <p>Using <code>" "</code> is not possible, I have a lot of header's dependency.</p>