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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eda9cd0ad906c54b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: How to get pathname of executable Date: Fri, 16 Dec 2005 06:56:12 +0000 (UTC) Organization: BT Openworld Message-ID: References: <4d4f4$439ee80e$49955ab$26123@ALLTEL.NET> <439fbcd3$0$19908$626a54ce@news.free.fr> <43a142f9_1@glkas0286.greenlnk.net> NNTP-Posting-Host: host86-142-136-239.range86-142.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com 1134716172 21433 86.142.136.239 (16 Dec 2005 06:56:12 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Fri, 16 Dec 2005 06:56:12 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Xref: g2news1.google.com comp.lang.ada:6889 Date: 2005-12-16T06:56:12+00:00 List-Id: Simon Wright wrote: > Dirk Heinrichs writes: > > >>$ gnat >>GNAT 3.4.3 Copyright 1996-2004 Free Software Foundation, Inc. > > > The FSF 4.0.0 version also compiles Martin's code -- with a warning: > > grendel:~/tmp simon$ gnatmake test_exe_loc > gcc -c test_exe_loc.adb > test_exe_loc.adb:2:09: warning: "Ada.Directories" is an Ada 2005 unit > gnatbind -x test_exe_loc.ali > gnatlink test_exe_loc.ali > grendel:~/tmp simon$ ./test_exe_loc > /Users/simon/tmp try "gnatmake -gnat05 ..." Cheers -- Martin