# 'SetPipelineState': illegal qualified name in member declaration

**URL:** <https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930>\
**Category:** Pipeline & Plugins\
**Tags:** compiling, unreal-engine, question\
**Created:** [May 29, 2017, 7:29am UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930 "2017-05-29T07:29:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbprofi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@newbprofi](https://forums.unrealengine.com/u/newbprofi)\
**Post date:** [May 29, 2017, 7:29am UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/1 "2017-05-29T07:29:56Z")

</div>

cannot compile 4.16.0

engine\source\runtime\d3d12rhi\private\D3D12StateCachePrivate.h(716): error C4596: ‘SetPipelineState’: illegal qualified name in member declaration

ERROR : UBT error : Failed to produce item: Engine\Plugins\Runtime\OculusRift\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-OculusRift.lib

vs 2017

---

<div class="post-metadata">

**Author:** ![newbprofi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@newbprofi](https://forums.unrealengine.com/u/newbprofi)\
**Post date:** [May 29, 2017, 7:41am UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/2 "2017-05-29T07:41:43Z")

</div>

fixed:

D3D12\_STATE\_CACHE\_INLINE void FD3D12StateCacheBase::SetPipelineState(FD3D12PipelineState\* PSO)

change to =\>

D3D12\_STATE\_CACHE\_INLINE void SetPipelineState(FD3D12PipelineState\* PSO)

links:

> **[Give Visual C++ a Switch to Standard Conformance](https://devblogs.microsoft.com/cppblog/permissive-switch/)**
>
> This post was written by Gabriel Dos Reis, Phil Christensen, and Andrew Pardoe The Visual C++ Team is excited to announce that the compiler in Visual Studio 2017 RC will feature a mode much closer to ISO C++ standards conformance than any time in its...

Use of qualified names in member declarations

---

<div class="post-metadata">

**Author:** ![philboltt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@philboltt](https://forums.unrealengine.com/u/philboltt)\
**Post date:** [May 29, 2017, 9:15am UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/3 "2017-05-29T09:15:22Z")

</div>

Same issue is being tracked in [this post](https://answers.unrealengine.com/questions/600362/error-building-416-branch-from-source.html) if you’re interested

---

<div class="post-metadata">

**Author:** ![Positivity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Positivity](https://forums.unrealengine.com/u/Positivity)\
**Post date:** [June 30, 2017, 5:23pm UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/4 "2017-06-30T17:23:23Z")

</div>

I really would like to not to do this every time new Engine comes out. Is it really so hard to fix this ?

---

<div class="post-metadata">

**Author:** ![Kieranator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kieranator](https://forums.unrealengine.com/u/Kieranator)\
**Post date:** [July 27, 2017, 3:12pm UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/5 "2017-07-27T15:12:40Z")

</div>

Same. I also compiled the engine once without having to do this on VS2017, which seems to elude logic. I compiled it within the last week on the release branch, so nothing has changed with the code. I’m wondering if it has to do with GenerateProjectFiles.bat, both times I ran it with the -2017 switch. It might have to do with registry values for visual studio?

---

<div class="post-metadata">

**Author:** ![kklimitkk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kklimitkk](https://forums.unrealengine.com/u/kklimitkk)\
**Post date:** [December 6, 2018, 5:46am UTC](https://forums.unrealengine.com/t/setpipelinestate-illegal-qualified-name-in-member-declaration/394930/6 "2018-12-06T05:46:01Z")

</div>

thanks I solved
