Note that there are some explanatory texts on larger screens.

plurals
  1. POVC++ 2008 compiling problem with boost
    text
    copied!<p>All of a sudden a two project solution started to fail to compile. I don't remember making any change that could compromise the build. One project is a lib and the other is exe. The lib is still compiling without issues, but the exe fails. I isolated the issue at a point when some boost files are loaded. Here is a the stdafx.cpp that is enough to show the error:</p> <pre><code>#include "stdafx.h" #include &lt;boost/thread.hpp&gt; </code></pre> <p>And these are the errors reported:</p> <pre><code>1&gt;Compiling... 1&gt;stdafx.cpp 1&gt; c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h(525) : see declaration of '_ultoa' 1&gt;c:\libs\boost_1_44_0\boost\mpl\size_t_fwd.hpp(23) : error C2143: syntax error : missing ',' before 'constant' 1&gt;c:\libs\boost_1_44_0\boost\mpl\aux_\integral_wrapper.hpp(42) : error C2143: syntax error : missing ',' before 'constant' 1&gt;c:\libs\boost_1_44_0\boost\mpl\aux_\integral_wrapper.hpp(84) : error C2143: syntax error : missing ',' before 'constant' 1&gt;c:\libs\boost_1_44_0\boost\mpl\aux_\integral_wrapper.hpp(84) : error C3211: 'boost::mpl::size_t&lt;__formal&gt;::value' : explicit specialization is using partial specialization syntax, use template &lt;&gt; instead 1&gt; with 1&gt; [ 1&gt; __formal=1135 1&gt; ] 1&gt; c:\libs\boost_1_44_0\boost\mpl\aux_\integral_wrapper.hpp(45) : see declaration of 'boost::mpl::size_t&lt;__formal&gt;::value' 1&gt; with 1&gt; [ 1&gt; __formal=1135 1&gt; ] </code></pre> <p>I noticed that if I change the include line to:</p> <pre><code>#include "stdafx.h" #include &lt;boost/thread/thread.hpp&gt; </code></pre> <p>it works, but then I have other includes in the code as:</p> <pre><code>#include &lt;boost/bind.hpp&gt; #include &lt;boost/function.hpp&gt; </code></pre> <p>and they also give the same 4 error lines.</p> <p>Anyone have any idea what could be wrong? I am restating that this code worked for months and the error first came yesterday.</p>
 

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