From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4dfbb9c23c9a83eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-03!sn-xit-11!sn-xit-09!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Adaddict" Newsgroups: comp.lang.ada Subject: How to set the stack size on GNAT (Follow-up) Date: Sat, 06 Aug 2005 07:21:26 -0400 Organization: www.talkaboutprogramming.com Message-ID: <2db7e95053c018032e212a9f7c2c614d@localhost.talkaboutprogramming.com> X-Newsreader: www.talkaboutprogramming.com X-Problems-To: info at talkaboutnetwork.com X-Posted-By: USERID-68263 Content-Type: text/plain; References: <27c5ecc06ac6a213466ab65361d20376@localhost.talkaboutprogramming.com> X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com comp.lang.ada:4000 Date: 2005-08-06T07:21:26-04:00 List-Id: Ok, I read the posts below talking about this error and they all menction about setting the stack size. They menction different ways to do it: 1. package Linker is for Default_Switches ("ada") use ("-g", "-Xlinker stack=0x10000000,0x10000000"); end Linker; 2. -Xlstack= 10485760 3. --Xlinker --stack=4000000,4000000 4. $ gnatlink hello -Xlinker --stack=0x10000,0x1000 5. $ gnatlink hello -Wl,--stack=0x1000000 Creating the linker package (1) I was getting a compilation error with it ("missing use"). Using the other 4 ways in the command prompt by writing gnatlink and the 4 other options I was getting the message "gnatlink: Failed to open binder output". Could anyone tell me what am I doing wrong and what should I write exactly? Thank you everyone. Forgive me for such a newbie question.