Don&#39;t know about 2010 Express, but IIRC there were problems (at least in previous VS versions) with compiling code with a lot of templates (like spirit, xpressive or MPL from boost). So compiler asks to increase heap size.<br>
<br>Anyways, in our projects I always reset CMake&#39;s default compile flags: this is essential during migration from plain projects but proves useful anyways.<br><br><div class="gmail_quote">On Sat, Jan 28, 2012 at 7:51 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Jan 28, 2012 at 9:02 AM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt; wrote:<br>

&gt; Folks,<br>
&gt;<br>
&gt; I&#39;m using VS 2010 Express.<br>
&gt;<br>
&gt; When ever I build a VTK or ITK related app I get errors regarding<br>
&gt; virtual memory and warnings about deprecated compiler flags:<br>
&gt; use &#39;EHsc&#39; instead of &#39;GX&#39;<br>
&gt;<br>
&gt; I always have to remove the /Zm1000 flag and add the /EHsc flag.<br>
&gt;<br>
&gt; I assumed this was do to something screwed up in my installation.<br>
&gt;<br>
&gt; Doing a web search for this issue, I found several other people having<br>
&gt; similar issues. Try this search:<br>
&gt; visual studio express 2010 /zm1000<br>
&gt;<br>
&gt; At Second Life,<br>
&gt; <a href="http://wiki.secondlife.com/wiki/Microsoft_Windows_Builds" target="_blank">http://wiki.secondlife.com/wiki/Microsoft_Windows_Builds</a> they advise<br>
&gt; editing the Windows-cl.cmake file to solve the problem.<br>
&gt;<br>
&gt; Is there a reason this cannot be fixed in cmake?<br>
&gt;<br>
&gt; Bill<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Unpaid intern in BillsBasement at noware dot com<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
</div></div>Seems reasonable. Is anybody worried that changing the default values<br>
of these flags would have a negative impact on any projects out there?<br>
(i.e. is it likely that anybody relies on these flags being present<br>
and that would somehow break their build without them...? I don&#39;t<br>
think it&#39;s likely, but I&#39;m willing to discuss before making a change<br>
in CMake)<br>
<br>
<br>
Thx,<br>
David<br>
<div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>