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?
As mentioned in this answer, closing and re-opening the solution worked fine for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With