question

DeadStack avatar image
0 Votes"
DeadStack asked DeadStack answered

pch issue E2998 warning and thousands of errors.

I'm setting up a UWP DirectX app.

I'm getting the following error in my Application.cpp file on the #include "pch.h" line..

E2998 PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated.

My pch.h file is as follows..

#pragma once

// Use the C++ standard templated min/max
#define NOMINMAX

#include "winrt/Windows.ApplicationModel.h"
#include "winrt/Windows.ApplicationModel.Core.h"
#include "winrt/Windows.ApplicationModel.Activation.h"
windows-uwpc++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DeadStack avatar image
0 Votes"
DeadStack answered

Someone suggested using the nuget version of C++/WinRT. That fixed at least this issue - though I can't understand why it wasn't using it already, because the project was a project template with the source taken out.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.