# Missing wininet.h with JUCE 5.2 and Windows 10 SDK 10.016299.0

**URL:** <https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846>\
**Category:** Windows\
**Created:** [October 27, 2017, 12:26pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846 "2017-10-27T12:26:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandomMotion](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RandomMotion](https://forum.juce.com/u/RandomMotion)\
**Post date:** [October 27, 2017, 12:26pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/1 "2017-10-27T12:26:41Z")

</div>

Getting compile errors using VisualStudio 2017 with JUCE version 5.2. I tried all the remedies here:

> <https://stackoverflow.com/questions/46731975/getting-juce-to-work-windows/46895330#46895330>

  
but none worked. I do have Windows 10 SDK 10.0.16299.0 installed and set Windows Target Platform to that value. This is my first attempt to use JUCE, and I’m not getting anywhere. Any help appreciated.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [October 27, 2017, 1:02pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/2 "2017-10-27T13:02:16Z")

</div>

Perhaps your SDK installation is incomplete. is `WinInet.h` located in `C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um`?

Try re-downloading it from [here](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk).

---

<div class="post-metadata">

**Author:** ![lukasz.k](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@lukasz.k](https://forum.juce.com/u/lukasz.k)\
**Post date:** [October 27, 2017, 1:17pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/3 "2017-10-27T13:17:02Z")

</div>

Also, if you open `juce_BasicNativeHeaders.h`, right click in `#include <wininet.h>` (line #135) and choose `Open Document` (ctrl + shift + G), you should get an error dialog, showing you where VS2017 is looking for that header. For `10.0.15063.0` SDK for instance you will get an error dialog with following search paths

 ![29](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/e/e1ea7b667273590dab13a79cf3a3239c242755c9.png)

So is VS2017 definitely looking for include files in the correct place?

---

<div class="post-metadata">

**Author:** ![hyakken](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hyakken](https://forum.juce.com/u/hyakken)\
**Post date:** [October 27, 2017, 3:16pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/4 "2017-10-27T15:16:33Z")

</div>

I had build error after updating to JUCE v5.2.  
So I installed latest SDK of Win10.  
And it’s all fine now.

---

<div class="post-metadata">

**Author:** ![RandomMotion](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RandomMotion](https://forum.juce.com/u/RandomMotion)\
**Post date:** [October 28, 2017, 2:42pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/5 "2017-10-28T14:42:32Z")

</div>

I did look in `C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um`  
and wininet.h wasn’t there. From the install log I saw that when installing the Windows 10 SDK that there was an error. Checked the corresponding Microsoft web page for the corresponding error, but that was no help. I tried reinstalling Windows SDK 10 and VisualStudio 2017 a couple of times as Administrator, but still got the same result (no wininet). And I did use that link provided by ed95, so it’s not a matter of trying to install the right version.

Then I thought maybe there was a compatibility issue between the Windows 8.1 OS, which I’m running and the VS2017 and SDK 10 (although it doesn’t appear that there should be per the Microsoft documentation), so I tried to install VisualStudio 2015. It told me that it installed but there were some problems. But the `log` link didn’t work so I couldn’t see any detail. I tried using it on a JUCE example anyway, and got a wininet.h error.

So at this point, it looks like some sort of pure Microsoft issue and not a JUCE one.

I’m a professional developer on Linux platform, and use cygwin as a hobbyist at home on my Windows PC, so I’ve never used VisualStudio and Microsoft’s development environment before. I would have thought that since they control their own ecosystem, I’d never run into problems like this. Yikes!

I know this is out of the JUCE domain now. But if anyone has suggestions though, I’m still willing to follow up on them.

Thanks again for the suggestions.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [October 30, 2017, 8:51am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/6 "2017-10-30T08:51:25Z")

</div>

Is it possible for you to try older versions of the Windows 10 SDK, or even the Windows 8.1 SDK? You can download them from Microsoft’s archive [here](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive).

You’ll need to set the corresponding SDK version in the “Windows Target Platform” field of the VS exporter too:

 ![21](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/b/b6fd97149d47740cb4a62aa9a09383c34f93600b.png)

---

<div class="post-metadata">

**Author:** ![DavidCNAntonia](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/davidcnantonia/32/3293_2.png) [@DavidCNAntonia](https://forum.juce.com/u/DavidCNAntonia)\
**Post date:** [November 18, 2017, 9:12pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/7 "2017-11-18T21:12:22Z")

</div>

Is anyone aware of the best SDK to be using to fix this issue? I ran into this problem after going to 5.2 (although admittedly I haven’t used windows in a while). I did a complete reinstall of Visual Studio as I thought that might be the issue. That didn’t solve the problem. I have now tried the latest SDK download (10.0.16299.15) just in case it was a .0 issue but again had no luck. Its also showing that gl/GL.h is missing too.

 ![Screenshot (52)](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/1/1419ca8794324fc14d9683b33611ebd407ec22d6.png)

EDIT: I have tried a variety of SDK’s and I still am searching for a solution.

---

<div class="post-metadata">

**Author:** ![hyakken](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hyakken](https://forum.juce.com/u/hyakken)\
**Post date:** [November 19, 2017, 1:52am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/8 "2017-11-19T01:52:58Z")

</div>

I found this topic about gl/Gl.h stuff.

> [@Beginner help - gl/Gl.h not found and others. (Windows)](https://forum.juce.com/t/beginner-help-gl-gl-h-not-found-and-others-windows/25104):
>
> Hi, I’m a beginner trying to get into using Juce so I opened one of the example projects to take a look at the code layout etc but it won’t let me run or build. I then tried just creating empty projects but that won’t work either! I have clean installed Juce and visual studio 2017 twice now and that still won’t fix it. Some help would be appreciated! Here are the errors that I think are stopping the build:

It might help your issue.

---

<div class="post-metadata">

**Author:** ![DavidCNAntonia](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/davidcnantonia/32/3293_2.png) [@DavidCNAntonia](https://forum.juce.com/u/DavidCNAntonia)\
**Post date:** [November 19, 2017, 10:44am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/9 "2017-11-19T10:44:15Z")

</div>

Thanks for the suggestion, sadly it hasn’t helped though.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [November 20, 2017, 9:23am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/10 "2017-11-20T09:23:35Z")

</div>

Have you checked this?

> [@ed95](#):
>
> Perhaps your SDK installation is incomplete. is WinInet.h located in C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.15\um?

---

<div class="post-metadata">

**Author:** ![DavidCNAntonia](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/davidcnantonia/32/3293_2.png) [@DavidCNAntonia](https://forum.juce.com/u/DavidCNAntonia)\
**Post date:** [November 20, 2017, 10:11pm UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/11 "2017-11-20T22:11:37Z")

</div>

Winlnet.h is located there. Is it supposed to be wininet or winlnet?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [November 21, 2017, 9:15am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/12 "2017-11-21T09:15:47Z")

</div>

It don’t think it matters. Windows won’t care about capitalisation.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [November 21, 2017, 9:24am UTC](https://forum.juce.com/t/missing-wininet-h-with-juce-5-2-and-windows-10-sdk-10-016299-0/24846/13 "2017-11-21T09:24:24Z")

</div>

If you’re using the live-build engine you also need to set the target platform version in the live-build settings here:

 ![15](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/a/a7654e9550069f1f84ef8808a86dad992b03e2e3.png)

Currently this only supports SDK versions up to 10.0.16299.0 but I will replace it with a text field like in the VS exporters so any SDK version can be entered.
