title: cpp error while testing new boost install in cygwin
body: <p>I have installed boost by downloading and unzipping the <code>boost_1_67_0.tar.bz2</code> file in the following location: </p>
  
  <pre><code>/cygdrive/c/no_admin_programs/boost_1_67_0
  </code></pre>
  
  <p>I have entered the following into a file test.cpp: </p>
  
  <pre><code>#include &lt;boost/lambda/lambda.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;iterator&gt;
  #include &lt;algorithm&gt;
  
  int main()
  {
      using namespace boost::lambda;
      typedef std::istream_iterator&lt;int&gt; in;
  
      std::for_each(
          in(std::cin), in(), std::cout &lt;&lt; (_1 * 3) &lt;&lt; " ");
  }
  </code></pre>
  
  <p>And entered the following in the terminal: </p>
  
  <pre><code>c++ -I /cygdrive/c/no_admin_programs/boost_1_67_0 test.cpp
  
  As a result, the following error is shown: 
  In file included from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/cstdlib:75:0,
                   from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/stl_algo.h:59,
                   from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/algorithm:62,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/core/swap.hpp:25,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/utility/swap.hpp:15,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/detail/tuple_basic.hpp:40,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/tuple.hpp:28,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/core.hpp:30,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/lambda.hpp:14,
                   from test.cpp:1:
  /usr/include/stdlib.h:91:7: error: expected initializer before ‘__alloc_size2’
         __alloc_size2(1, 2) _NOTHROW;
         ^~~~~~~~~~~~~
  In file included from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/cstdlib:75:0,
                   from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/stl_algo.h:59,
                   from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/algorithm:62,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/core/swap.hpp:25,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/utility/swap.hpp:15,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/detail/tuple_basic.hpp:40,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/tuple.hpp:28,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/core.hpp:30,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/lambda.hpp:14,
                   from test.cpp:1:
  /usr/include/stdlib.h:144:63: error: expected initializer before ‘__alloc_size2’
   void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size2(2, 3);
                                                                 ^~~~~~~~~~~~~
  In file included from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/stl_algo.h:59:0,
                   from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/algorithm:62,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/core/swap.hpp:25,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/utility/swap.hpp:15,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/detail/tuple_basic.hpp:40,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/tuple/tuple.hpp:28,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/core.hpp:30,
                   from /cygdrive/c/no_admin_programs/boost_1_67_0/boost/lambda/lambda.hpp:14,
                   from test.cpp:1:
  /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/cstdlib:138:11: error: ‘::calloc’ has not been declared
     using ::calloc;
             ^~~~~~
  </code></pre>
  
  <p>I've tried including <code>&lt;cstdlib&gt;</code> to no avail. Any assistance would be much appreciated. </p>