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=-0.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,12c54a0f5a27d882 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Autoconf & gnat Help Needed Date: Fri, 23 Apr 2010 20:13:32 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <82sk6nn4vn.fsf@stephe-leake.org> <82ochamzq1.fsf@stephe-leake.org> <5867de55-7ca2-4c64-a72f-d2343153eef0@k36g2000yqn.googlegroups.com> Injection-Date: Fri, 23 Apr 2010 20:13:32 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="21664"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PJpnRUQDqkdvuEcmVSsv1eJKbpUeXFbA=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:dnQ2GjCS1gVcrtGPZLLbdI8SP9A= Xref: g2news2.google.com comp.lang.ada:11141 Date: 2010-04-23T20:13:32+00:00 List-Id: Vadim Godunko expounded in news:5867de55-7ca2-4c64-a72f-d2343153eef0 @k36g2000yqn.googlegroups.com: > On Apr 23, 5:44�pm, Warren wrote: >> >> For a basic interpreter, making use of ncurses, libgmp, libgsl, >> and PostgreSQL etc., it is unavoidable. :) �I tried to avoid C++ >> like the plague, but ncurses requires a C++ main, if GNAT exceptions >> are to work correctly. I'm not sure of the details why, but a GNAT >> exception + ncurses and a C or gnat main leads to an abort. >> Switching to a C++ main program has corrected that. >> > Did you try to pass -shared to gnatbind? No, but is that really relevant? The problem was not library linkage, but the fact that if an exception was raised in the Ada modules, the exception handler would not work -- the whole unit would abort. In fact I was able to interact with ncurses and everything else C wise, until I did a "raise". Warren