www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/06/22:18:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 6 Dec 2000 22:17:09 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin support <cygwin AT cygwin DOT com>
Subject: Re: [Fwd: Checking for 95 vs. NT at runtime]
Message-ID: <20001206221709.E12161@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin support <cygwin AT cygwin DOT com>
References: <3A2ED9DF DOT 1E3BDAD0 AT sattel DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <3A2ED9DF.1E3BDAD0@sattel.com>; from bedge@sattel.com on Wed, Dec 06, 2000 at 04:29:19PM -0800

On Wed, Dec 06, 2000 at 04:29:19PM -0800, Bruce Edge wrote:
>Christopher Faylor wrote:
>> 
>> On Wed, Dec 06, 2000 at 04:03:58PM -0800, Bruce Edge wrote:
>> >Can you tell from the cygwin API whether you're running under NT or 95?
>> >
>> >I saw the thread that contained:
>> >
>> >  if (! is_winnt)
>> >    {
>> >      ...your w9x specific code...
>> >    }
>> >
>> >The definition of is_winnt is used eg. in `cygwin_utils.c':
>> >
>> >#define is_winnt       (GetVersion() < 0x80000000)
>> >
>> >but GetVersion is undefined.
>> 
>> No, it isn't.  I don't know why you would think that this is undefined
>> but it is not.
>
>When I link I get:
>/../../../src/lib/dama/stdmsg/stack/stdm_phy_232.cc:103: undefined reference
>to
>`GetVersion(void)@0'
>collect2: ld returned 1 exit
>status                                             
>
>and, I did a: 
>  for f in /lib/*.a ; do objdump --syms | grep GetVersion; done
>without seeing it resolved anywhere, just saw references to it.
>
>Do you know what lib file it's in?
>
>> You do have to include the header file which defines it, though, which
>> would probably be <windows.h>.

libkernel32.a .  This is in (coincidentally) the w32api package.

If you haven't installed (and I'd have to wonder why anyone would avoid
doing so) this then that is your problem.

FYI, this is a Windows function.  You should check out

http://msdn.microsoft.com/library/default.asp

to read up on Microsoft functions.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019