comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: MinGW issues with gnat
Date: Mon, 30 May 2011 09:30:38 +0200
Date: 2011-05-30T09:30:38+02:00	[thread overview]
Message-ID: <1rpuqmei4kxmm$.1jyt35gunlvvy$.dlg@40tude.net> (raw)
In-Reply-To: 8762otnp8w.fsf@ludovic-brenta.org

On Sun, 29 May 2011 23:58:07 +0200, Ludovic Brenta wrote:

> Yannick Duch�ne writes on comp.lang.ada:
>> Marco <prenom_nomus@yahoo.com> 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



  parent reply	other threads:[~2011-05-30  7:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 21:16 MinGW issues with gnat Marco
2011-05-29 21:40 ` Yannick Duchêne (Hibou57)
2011-05-29 21:58   ` Ludovic Brenta
2011-05-29 22:32     ` Yannick Duchêne (Hibou57)
2011-05-30  7:30     ` Dmitry A. Kazakov [this message]
2011-05-30 10:42       ` Frank J. Lhota
2011-05-30  3:59 ` tornenvi
2011-05-30  5:30   ` Yannick Duchêne (Hibou57)
2011-05-30  8:20     ` tornenvi
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox