You are not logged in.

#1 2023-07-01 00:02:32

slx
Member
Registered: 2015-02-07
Posts: 8

unreal-engine error about -Wpragma-once-outside-header

I am trying to compile unreal-engine, it worked some time ago, but since few months I got error:

[1970/17816] Compile DisplayClusterConfigurationTypes_Media.cpp
/home/DATA/Projects/ABS/BUILD/unreal-engine/unreal-engine/src/unreal-engine/Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterConfiguration/Private/DisplayClusterConfigurationTypes_Media.cpp:3:9: error: #pragma once in main file [-Werror,-Wpragma-once-outside-header]
#pragma once

And of course there is "#pragma" in source. So how others can compile it? It seems that they don't have "-Wpragma-once-outside-header", but I did not set that anywhere.

Offline

#2 2023-12-24 15:45:52

MattEqualsCoder
Member
Registered: 2023-12-24
Posts: 1

Re: unreal-engine error about -Wpragma-once-outside-header

Did you have any luck with this? I'm having the same problem.

Offline

Board footer

Powered by FluxBB