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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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,ASCII Path: g2news1.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: MinGW issues with gnat Date: Mon, 30 May 2011 09:30:38 +0200 Organization: cbb software GmbH Message-ID: <1rpuqmei4kxmm$.1jyt35gunlvvy$.dlg@40tude.net> References: <8762otnp8w.fsf@ludovic-brenta.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:19584 Date: 2011-05-30T09:30:38+02:00 List-Id: On Sun, 29 May 2011 23:58:07 +0200, Ludovic Brenta wrote: > 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 :) + Remove references to GetProcessID. In many cases it can be removed or worked around by this or other way. An overview can be found here: http://www.ms-news.net/f2725/getprocessid-and-how-to-do-this-for-windows-98-2000-and-xp-4079045.html -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de