title: Increase stack size when compiling with mingw?
body: <p>I'm writing a recursive flood-fill algorithm to find connected components in an image, my code compiles and runs well with MSVC 2008 compiler; but the mingw-compiled binary crashed at runtime.</p>
  
  <p>After I converted the algorithm to non-recursive with std::stack, everything goes well.</p>
  
  <p>But what if I must use recursive algorithm in some case, and mingw cannot handle it?</p>
  
  <p>How can I increased stack size of a binary, is there any compilation options?</p>
  
  <p>Thanks</p>