On 06/11/2011 16:10, Case Van Horsen wrote:
> I've used the Windows 7 SDK to compile MPIR in both 32- and 64-bit
> mode. I just used the batch file approach but I believe the SDK will
> add a 64-bit compiler to Visual Studio Express. IIRC, the 7.0 SDK
> corresponds to VS 2008 and the 7.1 SDK corresponds to VS 2010.

Thanks, I hadn't realised that I could use the freely available SDK to
build 64-bit C++ applications.  That's good to know for its own sake.

I've run into yet more glitches - I've installed the 7.1 SDK and run the
"Windows SDK 7.1 Command Prompt"... no matter what configuration I
choose using setenv, MPIR refuses to build... this time it appears to be
some sort of problem with pre-processor definitions... or,
alternatively, I'm making some kind of error with configuration...

> C:\usr\CPPLibs\MPIR-2.4.0\win> setenv /debug /x64
> Setting SDK environment relative to C:\Program Files\Microsoft
> SDKs\Windows\v7.1
> \.
> Targeting Windows 7 x64 Debug
>
> C:\usr\CPPLibs\MPIR-2.4.0\win> configure.bat
> setting params to
> (set LIBTYPE=lib)
> (set FLAGS=/Ox /Ot /D "NDEBUG" /D "HAVE_CONFIG_H" /nologo /D "_MBCS" /GS-)
> (set FLAGS1=/Oi /D "_LIB" /D "PIC" /MT)
> (set MPNPATH=x86_64w x86_64w\nehalem x86_64w\nehalem\westmere)
> (set ABI=64)
>
> C:\usr\CPPLibs\MPIR-2.4.0\win> make.bat
>         1 file(s) copied.
>         1 file(s) copied.
>         1 file(s) copied.
>         1 file(s) copied.
> creating mpir.h for x64
> overwriting ..\\mpir.h with tmp.h
> add.c
> ..\..\mpir.h(1404) : error C2143: syntax error : missing ')' before
> 'constant'
> ..\..\mpir.h(1404) : error C2059: syntax error : ')'
> ..\..\mpir.h(1721) : error C2065: 'GMP_NAIL_BITS' : undeclared identifier
> ..\..\mpir.h(1721) : warning C4090: '=' : different 'const' qualifiers
> ..\..\mpir.h(1757) : error C2065: 'GMP_NAIL_BITS' : undeclared identifier
> ..\..\mpir.h(1757) : warning C4090: '=' : different 'const' qualifiers
> ..\..\gmp-impl.h(244) : fatal error C1189: #error :  no data available
> for this limb size in perfsqr.h
> ERROR

Lines 1402 to 1405 of ..\..\mpir.h read:

> #if GMP_NAIL_BITS == 0 || defined (_LONG_LONG_LIMB)
>   /* limb==long and no nails, or limb==longlong, one limb is enough */
>   return (unsigned long)(__gmp_n  0);
> #else


-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to