Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliSense PCH Warning not going away

I have a ATL C++ project and I don't have any includes in one of my C++ source files.

When I try to compile, I am receiving a PCH warning:

Error (active) E2940 PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated.

But the project compiles fine alongside with this warning.

I tried adding #pragma once and include "stdafx.h" as mentioned in this post, but any of them did not resolve this issue.

What else can I do to resolve this issue?

like image 237
GTAVLover Avatar asked Mar 09 '23 08:03

GTAVLover


1 Answers

As mentioned in this answer, closing and re-opening the solution worked fine for me.

like image 150
GTAVLover Avatar answered Mar 20 '23 02:03

GTAVLover