Eclipse CDT stack overflow problem,need help. [message #747256] |
Sun, 23 October 2011 21:29  |
Eclipse User |
|
|
|
Hello everyone, I started using Eclipse CDT (with MinGW on Windows) recently.
I need some very large arrays in my project.
As a result, stack overflow occurred.
In VC6.0, I used to increase the "stack allocation" amount in project->settings->link->output->stack allocation when this happened.
So where do I change the settings in Eclipse? Thanks a lot.
ps: I know there is a way to avoid this. Just use the "new" command to create large arrays and no stack overflow would happen. But I really want to know where I can increase the default stack amount in Eclipse.
Thanks again.
|
|
|
|
|
|
|
Re: Eclipse CDT stack overflow problem,need help. [message #753630 is a reply to message #752371] |
Fri, 28 October 2011 03:05  |
Eclipse User |
|
|
|
igoat wrote on Wed, 26 October 2011 13:19Oh, I found it.
In Project Properties->C/C++Build->Settings->Tool Settings->MinGW C++ Linker, I found there's a text box called "command" with initially "g++" in it.
So I should just change it into someting like "g++ -Wl,--stack,0xFFFFFF" and all the stack overflow problem can be solved?
Yes, but it's better to leave the "command" untouched and add the options to the "Miscellaneous" field of the linker.
|
|
|
Powered by
FUDForum. Page generated in 0.18967 seconds