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,913874d23e88b0b6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: MinGW issues with gnat Date: Sun, 29 May 2011 23:58:07 +0200 Organization: A noiseless patient Spider Message-ID: <8762otnp8w.fsf@ludovic-brenta.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="C1O1oGxysQTYfVFMJlanFw"; logging-data="19319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GTNUM3oI3X/Od+gGxz11v" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:JVz7Et95Ffcvb6mCf76BW+zS/VA= sha1:mSSdaDQWRsDt6uRK87c+R+hFh+o= Xref: g2news2.google.com comp.lang.ada:20551 Date: 2011-05-29T23:58:07+02:00 List-Id: Yannick DuchĂȘne writes on comp.lang.ada: > Marco a Ă©crit: >> I downloaded MinGW yesterday. The gcc compiler/linker works fine for >> C code but when I tried to run gnat (or any of the gnat utilities) I >> got this: >> >> procedure entry point GetProcessID could not be located in KERNAL32.dll >> >> Any ideas? >> >> Running on an old Window 2000 box. > > All GNAT versions later than GNAT 3.15p, were compatible with Windows > NT (or like) kernels. Prior to Windows XP, Windows NT and other > Windows version were different things. I guess that may be source of > the failure. Even though it's been a long time since I had any interest in Windows, I do remember that Windows 2000 is a version of Windows NT (specifically, it is Windows NT 5.0; XP is 6.0; Vista is 6.1 and 7 is 7). The problem is simply that GetProcessID was introduced only in Windows XP with SP1 and Windows Server 2003 [1]. [1] http://msdn.microsoft.com/en-us/library/ms683215%28v=vs.85%29.aspx Three solutions then: - upgrade to XP SP1 or later - downgrade the compiler - upgrade to GNU/Linux or a BSD :) -- Ludovic Brenta.