Windows 8.1 SDK doesn't find math.h

Due to problems with Windows 10 SDK in MSVC 2017 I'm trying the Windows 8.1 SDK, but I cannot compile anything, because there is no CRT - it doesn't find math.h (and probably others). What is happening exactly?

Upvotes: 0

Views: 660

Answers (1)

MichaelsonBritt
MichaelsonBritt

Reputation: 986

You probably need to install the Platform Toolset from an earlier version of Visual Studio. Consider using Visual Studio 2013 which includes the Windows 8.1 SDK, as explained in this answer, though I have not tested it.

Generally speaking, it seems Microsoft does not support installing platform toolsets independently of installing Visual Studio. And it seems that installing older Visual Studio versions can lead to problems, when a newer version is already installed. The last time I attempted this, the newer version began producing build errors afterwards.

It seems to be a common source of frustration - missing or improperly installed Platform Toolsets. And there does not appear to be a good generalized answer to the problem. Ideally, Microsoft would provide all versions of toolset installers (without full Visual Studio install) to their MSDN subscribers.

Upvotes: 1

Related Questions