Note that there are some explanatory texts on larger screens.

plurals
  1. POSlow Compile Time with Boost + GCC + precompiled header
    primarykey
    data
    text
    <p>Running: gcc version 4.2.1 (Apple Inc. build 5664)</p> <p>I created an apple XCode project with a default precompiled header. It appears to be very slow, and a trivial main file with a main function no includes no code takes 6 seconds to compile, which is after I upgraded to a new SSD drive. I am on a laptop, but I have reservations that upgrading to a workstation would alleviate my problem. If I turn off the precompiled header then the main file compiles in under a second. It appears that using a precompiled header puts a penalty across all files. This delay is makes me want to avoid compiling and experimenting with code which is not good. Here is what I am including in my precompiled header:</p> <pre><code>#pragma once #include &lt;algorithm&gt; #include &lt;bitset&gt; #include &lt;complex&gt; #include &lt;deque&gt; #include &lt;fstream&gt; #include &lt;functional&gt; #include &lt;iostream&gt; #include &lt;istream&gt; #include &lt;iterator&gt; #include &lt;limits&gt; #include &lt;list&gt; #include &lt;locale&gt; #include &lt;map&gt; #include &lt;numeric&gt; #include &lt;ostream&gt; #include &lt;queue&gt; #include &lt;set&gt; #include &lt;sstream&gt; #include &lt;stack&gt; #include &lt;stdexcept&gt; #include &lt;streambuf&gt; #include &lt;string&gt; #include &lt;valarray&gt; #include &lt;vector&gt; #include &lt;boost/smart_ptr/scoped_ptr.hpp&gt; #include &lt;boost/smart_ptr/scoped_array.hpp&gt; #include &lt;boost/smart_ptr/shared_ptr.hpp&gt; #include &lt;boost/smart_ptr/shared_array.hpp&gt; #include &lt;boost/smart_ptr/make_shared.hpp&gt; #include &lt;boost/smart_ptr/weak_ptr.hpp&gt; #include &lt;boost/smart_ptr/intrusive_ptr.hpp&gt; #include &lt;boost/regex.hpp&gt; #include &lt;boost/thread.hpp&gt; #include &lt;boost/bind/bind.hpp&gt; #include &lt;boost/bind/apply.hpp&gt; #include &lt;boost/bind/protect.hpp&gt; #include &lt;boost/bind/make_adaptable.hpp&gt; #include &lt;boost/asio.hpp&gt; //#include &lt;boost/asio/ssl.hpp&gt; #include &lt;boost/property_tree/ptree.hpp&gt; #include &lt;boost/random.hpp&gt; #include &lt;boost/lexical_cast.hpp&gt; #include &lt;boost/date_time/gregorian/gregorian.hpp&gt; #include &lt;boost/date_time/posix_time/posix_time.hpp&gt; #include &lt;boost/date_time/local_time/local_time.hpp&gt; #include &lt;boost/date_time/time_zone_base.hpp&gt; #include &lt;boost/circular_buffer.hpp&gt; #include &lt;boost/accumulators/accumulators.hpp&gt; #include &lt;boost/accumulators/statistics.hpp&gt; </code></pre> <p>I have not included spirit, which really makes the compile time go up.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload