User forums > Using Code::Blocks
Stack Size
(1/1)
mconflict:
How do I increase the stack size...?
I tryed -Wl,--stack=50000000 in the other option linker thingy... didn't work,
I tryed in the compiler options it doesn't work...
I have to get 200'000 words read in a file and it crashed at the 7700th
Radek:
Allocate instead of using local variables.
mconflict:
--- Quote from: Radek on March 21, 2012, 06:15:18 pm ---Allocate instead of using local variables.
--- End quote ---
What do you mean?
Sorry I'm a beginner in C programming.
frithjofh:
Hi,
what he is telling you is that such amount of variables you should allocate on the heap with "malloc" in the case of C and "new" in the case of C++.
But this is stuff you should look up in a programming book, it does not really belong on this forum. I bet the administrators will lock this topic any minute now...
Good luck reading ;)
Jenna:
--- Quote from: nausea on March 21, 2012, 06:27:26 pm ---But this is stuff you should look up in a programming book, it does not really belong on this forum. I bet the administrators will lock this topic any minute now...
--- End quote ---
Correct and locked !
Navigation
[0] Message Index
Go to full version