stack problem

Ellen De Beuckeleer ellen.debeuckeleer at incgeo.be
Tue Jul 12 06:46:06 UTC 2005


Hi,

It works fine for the CFLAGS field, but it won't work for CXXFLAGS. I 
get the following error when I add the line -mmax-stack-frame=10000000 
to CXXFLAGS (with or without putting the line in CFLAGS:

cd 'test/debug' && LDFLAGS="-Ltest/src/lib" CXXFLAGS="-O0 -g3 
-mmax-stack-frame=10000000" CFLAGS="-mmax-stack-frame=10000000 " 
"test/configure" --enable-debug=full
installing -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** Exited with status: 77 ***

Ellen


Nikolay Melekhin wrote:

> Hi!
>
>> I use some extremely large arrays like : int myArray[myconst] and 
>> myconst can be eg. 1000000. My total amount of space required for an 
>> instance of the class is about 26,6 MB. I am reusing code which I 
>> have not written myself and I am not supposed to change to much.
>>
> My first advise:
> Don't copy through stack such big structure use references and pointers.
>
> Second advise:
> If your project is automake based then open Project -> Project 
> Settings -> Configure settings. Select your build configuration and on 
> C tab in field "Compiler settings (CFLAGS)" and on C++ tab in field 
> "Compiler settings (CXXFLAGS)" enter -mmax-stack-frame=10000000
>
> For custom makefile based project use CFLAGS and CXXFLAGS variable in 
> your makefile.
>

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list