UPD: Tested in Windows only, the command (-Wl,--stack,268435456) might be different for other OS
go to settings -> compiler
go to linker settings tab and add "-Wl,--stack,SIZE" in the other linker options section (i've set 256mb)
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3741 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3489 |
7 | Radewoosh | 3483 |
8 | Kevin114514 | 3442 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
2 | atcoder_official | 162 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | nor | 150 |
UPD: Tested in Windows only, the command (-Wl,--stack,268435456) might be different for other OS
go to settings -> compiler
go to linker settings tab and add "-Wl,--stack,SIZE" in the other linker options section (i've set 256mb)
Название |
---|
Hi, I have this mistake: "unrecognized option --stack"
I'm working in Linux
The
--stack
flag is specific for Windows systems. On Linux, to get an unlimited stack, you should open a shell and run this command:And then (until you close that shell) the stack limit for that shell (and for the commands you will call from inside that shell, like
./program < input.txt
and so on) will be unlimited.I'm not sure how to tell CodeBlocks to run that command every time you click "Run".
If you have Linux, you can probably set that command to run on start in some config file.
I didn't know that the commands are different for windows and linux, i'll update the title. If what [user:wild93] says is correct, then you can add that command in place of WI,--stack... that should execute the command every time
I chanced upon this blog yesterday and yesterday itself I got to use it to increase the size of the stack to run a dfs on about a million nodes(Coursera assignment with impending deadline).Thanks a lot to ho-jo-bo-ro-lo and also to Xellos for bringing this topic to 'Recent actions' section (as this post was inactive for about 4 months).
I use some other text editors (VS Code). I have codeblocks in my system as well. I have put up that command in the codeblocks so is that stack size limit fixed in my pc for any ide/text editor I use? Someone please help!
Some of my friends use this and pass recent FHC contests