0

I am currently working on a Linux Makefile project in VS2017. And in for every header file I get this error:

Intellisense PCH Warning: Header stop not at file scope. An intellisense PCH file was not generated

Doesn't matter if I have #pragma once or similar things or not.
Removing the .vs folder to regenerate the IntelliSense did also not help.
I even tried adding /Y- in the additional parameter field for IntelliSense.

So in short, how do I turn this off or fix it?

BrainStone
  • 3,028
  • 6
  • 32
  • 59

1 Answers1

0

Go to Tools > options > Text Editor > C/C++ > Advanced

Then change Disable Automatic Precompiled Headers to True.

Also, useful might be changing Always use fallback location and Do Not Warn If Fallback Location Used to true.

Max Vollmer
  • 8,412
  • 9
  • 28
  • 43
rlevkovych
  • 3
  • 1
  • 2