I think 10M is an insanely large default stack size. It just encourages
people to create int foo[100][100][100] on the stack instead of learning
how to use malloc or new. When creating non-cmake Visual Studio projects
the default stack size is way more sensible. I can't see any reason to
I can assume that 10M stack is reasonable for C code, where it's usual to
allocate temporary buffers on stack (in C++ it's easier to use heap, e.g.
using std::vector).
Bad thing is - impact of this flag is detected only at run time. If with
/Zm your code just won't compile, with /STACK everything
On 1/28/2012 10:51 AM, David Cole wrote:
Seems reasonable. Is anybody worried that changing the default values
of these flags would have a negative impact on any projects out there?
(i.e. is it likely that anybody relies on these flags being present
and that would somehow break their build
ITK and VTK both build fine if I remove the /Zm1000 flag.
On Mon, Jan 30, 2012 at 10:44 AM, Bill Hoffman bill.hoff...@kitware.com wrote:
On 1/28/2012 10:51 AM, David Cole wrote:
Seems reasonable. Is anybody worried that changing the default values
of these flags would have a negative impact
Folks,
I'm using VS 2010 Express.
When ever I build a VTK or ITK related app I get errors regarding
virtual memory and warnings about deprecated compiler flags:
use 'EHsc' instead of 'GX'
I always have to remove the /Zm1000 flag and add the /EHsc flag.
I assumed this was do to something
On Sat, Jan 28, 2012 at 9:02 AM, Bill Lorensen bill.loren...@gmail.com wrote:
Folks,
I'm using VS 2010 Express.
When ever I build a VTK or ITK related app I get errors regarding
virtual memory and warnings about deprecated compiler flags:
use 'EHsc' instead of 'GX'
I always have to remove
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.
Anyways, in our projects I always reset CMake's default compile flags:
David,
Someone recently posted a BUG for this:
http://www.gccxml.org/Bug/view.php?id=11913
Bill
On Sat, Jan 28, 2012 at 4:31 PM, Bill Lorensen bill.loren...@gmail.com wrote:
I think if you make the changes specific to VS 2010 they should be OK.
On Sat, Jan 28, 2012 at 10:51 AM, David Cole
Sorry, it was not recent, it was march 2011.
On Sat, Jan 28, 2012 at 4:38 PM, Bill Lorensen bill.loren...@gmail.com wrote:
David,
Someone recently posted a BUG for this:
http://www.gccxml.org/Bug/view.php?id=11913
Bill
On Sat, Jan 28, 2012 at 4:31 PM, Bill Lorensen