x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Windows: Warnings on successful C++ build

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 ==========
Product Version: UE 4.18
Tags:
more ▼

asked Jan 22 '18 at 09:11 AM in C++ Programming

avatar image

aaronsnoswell
21 3 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey there, you seem to be using defines that have not been defined, also he's saying that you already have included windows.h. Is it possible to take a look at the source file?

more ▼

answered Jan 22 '18 at 10:54 AM

avatar image

xlar8or
6k 162 129 305

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question