Hi, I have built and compiled a command line program with GNU g++ which "overflows" the stack for a number of reasons, mainly deep inheritance, lots of objects created, etc. So I followed this workaround on Mac OS X to solve the problem when linking:
-Wl,-stack_size,0x10000000,-stack_addr,0xc0000000
Under Linux, I just tried ulimit -s unlimited
; running the program in this way does not give a segmentation fault any more
But when trying to compile it on Windows with GNU g++, the compiler does not recognize
-Wl,-stack_size,0x10000000,-stack_addr,0xc0000000
What other option would you use as a workaround for the problem?
Thanks in advance