I’m developing a UE4 C++ plugin. On windows, when I do a succssful build, I get a bunch of warnings about windows macros being overridden. Normally this means I forgot to use the AllowWindowsPlatformTypes/HideWindowsPlatformTypes inlcude guard technique, but I’ve searched evrywhere through my code and can’t find any windows includes that aren’t guarded. Can anyone help me track down where the remaining warnings are coming from?
1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: TestROSIntegration, Configuration: Development_Editor x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\ProjectFiles\TestROSIntegration.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\ProjectFiles\TestROSIntegration.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\ProjectFiles\UE4.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\ProjectFiles\UE4.vcxproj]
2>Performing full C++ include scan (building a new target)
2>Using 'git status' to determine working set for adaptive non-unity build.
2>Creating makefile for TestROSIntegrationEditor (no existing makefile)
2>BSONPath: E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Plugins\ROSIntegration\ThirdParty\bson
2>Using Windows BSON files
2>Parsing headers for TestROSIntegrationEditor
2> Running UnrealHeaderTool "E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\TestROSIntegration.uproject" "E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\Build\Win64\TestROSIntegrationEditor\Development\TestROSIntegrationEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
2>Reflection code generated for TestROSIntegrationEditor in 12.4641782 seconds
2>Performing 12 actions (2 in parallel)
2>Module.ROSIntegration.gen.cpp
2>Module.ROSIntegration.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
2>e:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
2>e:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>
2>You have included windows.h before MinWindows.h
2>All useless stuff from the windows headers won't be excluded !!!
2>
2>
2>You have included windows.h before MinWindows.h
2>All useless stuff from the windows headers won't be excluded !!!
2>
2>TestROSIntegration.cpp
2>TestROSIntegrationActor.cpp
2>TestROSIntegrationGameModeBase.cpp
2>TestROSIntegration.init.gen.cpp
2>TestROSIntegrationActor.gen.cpp
2>TestROSIntegrationGameModeBase.gen.cpp
2>[9/12] Link UE4Editor-TestROSIntegration.lib
2> Creating library E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestROSIntegration.lib and object E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestROSIntegration.exp
2>[10/12] Link UE4Editor-ROSIntegration.lib
2>[11/12] Link UE4Editor-ROSIntegration.dll
2> Creating library E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Plugins\ROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-ROSIntegration.lib and object E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Plugins\ROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-ROSIntegration.exp
2>[12/12] Link UE4Editor-TestROSIntegration.dll
2> Creating library E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Plugins\ROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-ROSIntegration.suppressed.lib and object E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Plugins\ROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-ROSIntegration.suppressed.exp
2> Creating library E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestROSIntegration.suppressed.lib and object E:\Aaron Snoswell PhD\Development\ue4-ros\TestROSIntegration\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestROSIntegration.suppressed.exp
2>Deploying TestROSIntegrationEditor Win64 Development...
2>Total build time: 31.53 seconds (Local executor: 12.35 seconds)
2>Done building project "TestROSIntegration.vcxproj".
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========