User forums > Using Code::Blocks

stack size

<< < (3/3)

Raef Mohamed:
Hello,
I am trying to increase the stack size
I write in the linker options "-Wl,--stack,2048" but I receive an error unrecognized option '--stack'
Could anyone help?.

oBFusCATed:
1. Are you sure you're giving it to the linker. To verify inspect the full build log
2. Are you sure your linker supports it? To verify inspect the linker's documentation.

matthen:

--- Quote from: Raef Mohamed on February 05, 2021, 05:52:18 pm ---Hello,
I am trying to increase the stack size
I write in the linker options "-Wl,--stack,2048" but I receive an error unrecognized option '--stack'
Could anyone help?.

--- End quote ---

The string "-Wl,--stack=2048" worked for me. Also, I believe that the units are bytes, rather than megabytes, so it's probably sensible to add a few 0s. (Happy to be proven wrong)

benkenobi01:

--- Quote from: Raef Mohamed on February 05, 2021, 05:52:18 pm ---Hello,
I am trying to increase the stack size
I write in the linker options "-Wl,--stack,2048" but I receive an error unrecognized option '--stack'
Could anyone help?.

--- End quote ---
Dude what's your problem?

Navigation

[0] Message Index

[*] Previous page

Go to full version