Don'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'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"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></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 <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> Folks,<br>
><br>
> I'm using VS 2010 Express.<br>
><br>
> When ever I build a VTK or ITK related app I get errors regarding<br>
> virtual memory and warnings about deprecated compiler flags:<br>
> use 'EHsc' instead of 'GX'<br>
><br>
> I always have to remove the /Zm1000 flag and add the /EHsc flag.<br>
><br>
> I assumed this was do to something screwed up in my installation.<br>
><br>
> Doing a web search for this issue, I found several other people having<br>
> similar issues. Try this search:<br>
> visual studio express 2010 /zm1000<br>
><br>
> At Second Life,<br>
> <a href="http://wiki.secondlife.com/wiki/Microsoft_Windows_Builds" target="_blank">http://wiki.secondlife.com/wiki/Microsoft_Windows_Builds</a> they advise<br>
> editing the Windows-cl.cmake file to solve the problem.<br>
><br>
> Is there a reason this cannot be fixed in cmake?<br>
><br>
> Bill<br>
><br>
><br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
> --<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>
<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't<br>
think it's likely, but I'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>