From: KHMan <kei...@gm...> - 2013-05-18 08:13:53
|
On 5/18/2013 5:25 AM, Earnie Boyd wrote: > I'm doing some research into determining at configure time what > version of MSVCRT.DLL is actually available on a system. I've created > a small shell script for you to run that is attached. What I need is > some input from you as to whether or not this method could be used to > create a m4 script for configure to use to set a MSVCRT_VERSION > variable in config.h. > > The issue I'm trying to overcome is the system on XP doesn't have some > functions and data structures in MSVCRT that Vista/Win7/Win8 etc have > such as the stat structure being defined in stat.h. It is quite > maddening. So if we can set MSVCRT_VERSION reliably based on data > from MSVCRT.DLL itself we can overcome some of the harrowing issues. > > The value I get on my XP SP3 is 710. The value I get on my Win7 laptop is 900. > > The values are (MajorLinkerVersion * 100) + MinorLinkerVersion where > LinkerVersion refers to the version of MSVC that was used to create > MSVCRT.DLL that exists on your system. Windows XP SP2: 710 Windows XP SP3: 710 Plus one abomination: Windows ME[1]: 600 [1] WinME on Virtual PC 2007 SP1, with KernelEx using rxvt (mintty failed), msvcrt.dll was in SYSTEM -- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia |