title: Increase Stack Size in Dev C++ permanently
body: <p>In order to implement DFS on a huge graph in Dev c++ on a Windows 7 machine, I needed to increase the default stack size of 1 MB to 16 MB. I accomplished the same by creating a bat file in the folder as that of project with the text as..</p>
  
  <pre><code>g++ -Wl,--stack,16777216 -o project2.exe main.cpp
  </code></pre>
  
  <p>Every time I compile the program in Dev C++, it assigns the default stack value. I have to externally run this bat file and then run the exe file which consumes a lot of time.</p>
  
  <p>Is there any way to directly add this command following the commands of compilation?</p>
  
  <p>I tried adding this line in the Makefile but then the program doesn't compile.
  I also tried adding it in compiler options but still comes the same issue.</p>
  
  <p>Please suggest a method.</p>