On 07/01/2014 18:01, Gisle Vanem wrote:
> I just built MPIR and speed.exe on my Win-XP SP3 box using MSVC 2010.
> Only problem was AFAICS now is with win_timing.c
> 
> Somewhere in the Solution or a header (?), _WIN32_WINNT is set to
> Win-Vista which defines this function as:
> 
>  #define GetPerformanceInfo          K32GetPerformanceInfo
> 
> Thus speed.exe refuses to run since K32GetPerformanceInfo isn't in my
> kernel32.dll.
> 
> An easy fix for me was this:
> 
> @@ -1,5 +1,7 @@
> #define WIN32_LEAN_AND_MEAN
> +#undef _WIN32_WINNT
> +#define _WIN32_WINNT 0x501
> 
> #include <windows.h>
> #include <time.h>
> 
> --gv

Thank you for this report.

On Windows versions prior to Windows 7, GetPerformanceInfo is provided
by psapi.dll rather than kernel32.dll so psapi.dll would need to be
added to the link stage of the build on this OS.

I would expect MSVC 2010 on your system to automatically add this DLL to
the link stage of the build but it seems that you may have to do this
manually.

It is, of course, possible that this link failure is the result of an
issue in the MPIR code base but it looks more likely that it is an MSVC
2010 configuration issue.

If you can tarck it down to an MPIR issue, I will happily see if any
changes needed can be incorporated into MPIR.

   with my best regards,

      Brian

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to