From mint-bounce@lists.fishpool.fi Sat Feb 14 17:31:36 2009 Message-ID: <49974575.2000506@freesbee.fr> Date: Sat, 14 Feb 2009 23:28:05 +0100 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: mint CC: Mark Duckworth Subject: Re: [MiNT] C++ Stuff References: <499665F5.809@atari-source.org> <4996E70E.1030603@atari-source.org> <4996EE34.8090002@freesbee.fr> <499740F4.2010203@atari-source.org> In-Reply-To: <499740F4.2010203@atari-source.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n1EMVaiG021582 Mark Duckworth wrote: > It did crash (sort of): > > root@arawork:/h>g++ -o vect vect.cpp > root@arawork:/h>./vect > Not crashed ! screenname = > > It freezes here and if I try to attach to it with gdb I cannot interrupt > execution (or maybe I'm doing it wrong). Humm... You didn't answer the questions on my first message. 1) Which version of g++ do you use ? Try g++ --version and tell me what it says. I use the cross g++ 4.3.3 (and the brand-new binutils 2.19.1) and it works fine. 2) Try to increase the size of the stack of the generated executable, using stack -S While you use a native MiNT compiler, it may be a problem with the stack size of the compiler itself. It is something like /usr/libexec/gcc/m68k-atari-mint/*/cc1plus You may have a look at the preprocessed output (using g++ -E vect.cpp) and the assembler output (using g++ -S -o - vect.cpp), too, but it may be quite long and complicated. Good luck. -- Vincent Rivière