[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: stack problem
From:       Ellen De Beuckeleer <ellen.debeuckeleer () incgeo ! be>
Date:       2005-07-12 6:46:06
Message-ID: 42D3672E.7030200 () incgeo ! be
[Download RAW message or body]

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@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic