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!newshub.sdsu.edu!newsfeed.news2me.com!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to get pathname of executable Date: Thu, 15 Dec 2005 22:42:03 +0000 Organization: Pushface Message-ID: References: <4d4f4$439ee80e$49955ab$26123@ALLTEL.NET> <439fbcd3$0$19908$626a54ce@news.free.fr> <43a142f9_1@glkas0286.greenlnk.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1134686519 18931 62.49.19.209 (15 Dec 2005 22:41:59 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 15 Dec 2005 22:41:59 +0000 (UTC) Cancel-Lock: sha1:8sAMUtcXQrsZ6miuqlbdY8+M8TA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6888 Date: 2005-12-15T22:42:03+00:00 List-Id: 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