Boost C++ Libraries: Ticket #12318: Problem using Boost 1.61.0 with VTK Marching Cubes https://svn.boost.org/trac10/ticket/12318 <p> Hello, </p> <p> I seem to be having a problem using Boost 1.61.0 in conjunction with VTK 7.0.0. My purpose for using Boost is to obtain the filenames of all PNG files in any given folder using the following code: </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#define BOOST_FILESYSTEM_VERSION 3</span> <span class="cp">#define BOOST_FILESYSTEM_NO_DEPRECATED</span> <span class="cp">#include</span> <span class="cpf">&quot;boost/filesystem.hpp&quot;</span><span class="cp"></span> <span class="k">namespace</span> <span class="n">fs</span> <span class="o">=</span> <span class="o">::</span><span class="n">boost</span><span class="o">::</span><span class="n">filesystem</span><span class="p">;</span> <span class="c1">// return the filenames of all files that have the specified extension</span> <span class="c1">// in the specified directory and all subdirectories</span> <span class="kt">void</span> <span class="nf">get_all</span><span class="p">(</span><span class="k">const</span> <span class="n">fs</span><span class="o">::</span><span class="n">path</span><span class="o">&amp;</span> <span class="n">root</span><span class="p">,</span> <span class="k">const</span> <span class="n">string</span><span class="o">&amp;</span> <span class="n">ext</span><span class="p">,</span> <span class="n">vector</span><span class="o">&lt;</span><span class="n">fs</span><span class="o">::</span><span class="n">path</span><span class="o">&gt;&amp;</span> <span class="n">ret</span><span class="p">)</span> <span class="p">{</span> <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">fs</span><span class="o">::</span><span class="n">exists</span><span class="p">(</span><span class="n">root</span><span class="p">)</span> <span class="o">||</span> <span class="o">!</span><span class="n">fs</span><span class="o">::</span><span class="n">is_directory</span><span class="p">(</span><span class="n">root</span><span class="p">))</span> <span class="k">return</span><span class="p">;</span> <span class="n">fs</span><span class="o">::</span><span class="n">recursive_directory_iterator</span> <span class="n">it</span><span class="p">(</span><span class="n">root</span><span class="p">);</span> <span class="n">fs</span><span class="o">::</span><span class="n">recursive_directory_iterator</span> <span class="n">endit</span><span class="p">;</span> <span class="k">while</span><span class="p">(</span><span class="n">it</span> <span class="o">!=</span> <span class="n">endit</span><span class="p">)</span> <span class="p">{</span> <span class="k">if</span><span class="p">(</span><span class="n">fs</span><span class="o">::</span><span class="n">is_regular_file</span><span class="p">(</span><span class="o">*</span><span class="n">it</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="n">it</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">().</span><span class="n">extension</span><span class="p">()</span> <span class="o">==</span> <span class="n">ext</span><span class="p">)</span> <span class="n">ret</span><span class="p">.</span><span class="n">push_back</span><span class="p">(</span><span class="n">it</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">().</span><span class="n">filename</span><span class="p">());</span> <span class="o">++</span><span class="n">it</span><span class="p">;</span> <span class="p">}</span> <span class="p">}</span> </pre></div></div><p> This code is used as part of the CXX file, which is built with an appropriate CMakeLists file using CMake 3.5.1 to produce a corresponding .xcodeproj file. </p> <p> However, the main problem that I'm facing is that attempting to build the project using an ALL_BUILD scheme in Xcode 7.0.1 leads to a series of errors pointing to the #include statements of the header files in the Boost folder (which is located in the same folder as the CXX and CMakeLists files). </p> <p> For instance, it starts off saying that "'boost/filesystem/config.hpp' file not found" in response to the following line of boost/filesystem.hpp: </p> <div class="wiki-code"><div class="code"><pre><span class="cp"># include &lt;boost/filesystem/config.hpp&gt;</span> </pre></div></div><p> Such errors could be resolved if I were to modify the syntax of the #include statements to follow a different format: </p> <div class="wiki-code"><div class="code"><pre><span class="cp"># include &quot;./filesystem/config.hpp&quot;</span> </pre></div></div><p> i.e., replacing the &lt;&gt; with "" and using relative paths to find the other required header files. </p> <p> However, going in to modify every single header file is a sort of tedium that I find it difficult to handle, and therefore I was hoping for a simpler solution to this problem. </p> <p> By the way, I am on a Mac, and my operating system is El Capitan version 10.11.5. </p> <p> Thank you in advance. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12318 Trac 1.4.3