GTAVLover
GTAVLover

Reputation: 1427

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?

Upvotes: 5

Views: 9653

Answers (2)

GPme
GPme

Reputation: 1

In my experience, I just had an error in the program with std so I started using namespace std and it worked. I also added #pragma once

Upvotes: 0

GTAVLover
GTAVLover

Reputation: 1427

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

Upvotes: 7

Related Questions