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: a07f3367d7,d87fe6752812f07a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p4g2000vba.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: GNAT on WinXP: System.OS_Lib.Spawn raises Program_Error Date: Sun, 3 May 2009 03:33:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <50d832b4-140d-4029-8d7c-9397115160ba@u8g2000yqn.googlegroups.com> <923b28dd-46ee-40cb-b13e-5f8860405f22@r36g2000vbr.googlegroups.com> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241346798 29312 127.0.0.1 (3 May 2009 10:33:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 3 May 2009 10:33:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p4g2000vba.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5666 Date: 2009-05-03T03:33:18-07:00 List-Id: On May 2, 11:01=A0pm, "Ed Falis" wrote: > On Sat, 02 May 2009 16:39:57 -0400, anon wrote: > > GNAT.OS_LIB existed in GNAT 3.15p =A0but since GNAT 2005 it have been > > moved to System.OS_LIB. =A0And the GNAT.OS_LIB just renames System.OS_L= IB > > which makes this package a legacy for older projects and can be avoided= =A0 > > for > > future use. It just causes more work for the compiler which increase th= e > > compile time. > > You're wrong. =A0GNAT.OS_Lib is the intended interface for users (normall= y =A0 > you will get a warning about using an implementation unit subject to =A0 > unpredictable change if you use System.OS_Lib). =A0GNAT.OS_Lib is an =A0 > implementation-defined unit provided to users. =A0That it is a renaming o= f =A0 > System.OS_Lib is irrelevant (and also does not cause any noticable =A0 > compilation overhead). With GCC 4.3.3 on Mac OS X, $ gnatmake -f -gnatwaL test gcc -c -gnatwaL test.adb test.adb:7:03: warning: "Program_Name" is not modified, could be declared constant gnatbind -x test.ali gnatlink test.ali gnatlink: warning: executable name "test" may conflict with shell command So no warning about implementation-defined units there (I have seen them, though).