zoxl's blog

By zoxl, history, 7 years ago, In English

I have a problem setting stack size of Code:Blocks 16.01.

I had to code a DFS by recursion that has a depth of 100,000 and it gets overflowed in my computer. I thought it was a stack problem, so I tried some stuffs to increase the stack size but all failed.

I tried putting -Wl,--stack,268435456 << this in linker settings but it failed.

Does anyone know how to increase the stack size of Code::Blocks? I use Windows.

sorry for my bad english

  • Vote: I like it
  • +24
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it +38 Vote: I do not like it

Hi.

(Sorry for bad english)

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

commenting that it reaches active section

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

As an alternative, you can use a std:stack<> to simulate the recursion.

»
8 months ago, # |
Rev. 2   Vote: I like it -12 Vote: I do not like it

Yes, I know how to increase the stack size.