Error C4668

Hi there,

All of a sudden, I’m getting a whole bunch of the same error:
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winioctl.h(10326): error C4668: ‘_WIN32_WINNT_WIN10_TH2’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif

I’m not sure what I did. Everything was working fine about an hour ago and then when doing this lesson this started. I tried commenting out all of the code that I wrote from this lesson, but this is still happening.

Google said that I should add #define WIN32_LEAN_AND_MEAN before `#include “Windows.h” but I don’t know where.

I also tried restarting and then Unreal said that the project was created in a different version. Rebuilding resulted in a message saying that it couldn’t be rebuilt and I should try to do it manually.

Any idea what is going on here? Opening Building Escape or any of the previous projects works fine. I’m very new to all of this so I could use any help that you can provide.

Thanks in advance!

I figured it out… For some reason my IDE added

#include <ocidl.h>

On its own.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms