I know how to set the stack size to unlimited in the command line:
ulimit -s unlimited
And, in bash, when I set the stack size to unlimited, my code runs and terminates successfully.
Can I set the stack size to unlimited (or some specified size) in a makefile (with g++ as the compiler)? If so, how?
Note: I can only submit my source files (*.cpp, *.h) and a makefile for my project. That is, (1) the makefile is run, (2) the code is run. So, no scripts, or other special instructions are executed beforehand, which is why the changes must be made in the makefile...unless anyone has other/better/brilliant ideas?
Thanks in advance!