0

I have created a win32 console project by the name of xml read. I have included and used many dll and headers

#include "stdafx.h"
#using <msxml3.dll>
#using <mscorlib.dll>
#using <System.xml.dll>
using namespace MSXML2; 
using namespace System;
using namespace System::Xml;

I have included external folders and references to include these dll.

However, When compiling, following error is thrown

fatal error C1083: Cannot open precompiled header file: 'Debug\xmlread.pch': No such file or directory

I have not included this header in my code; what does this error indicate

Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
  • Your project settings are not correct. Always use the provided project template when you start a new project to fall in the pit of success. File > New > Project > Visual C++ > CLR > CLR Console Application. – Hans Passant Apr 13 '15 at 15:26
  • Thank you. This worked. I still don't understand though what exactly is .pch for – sakshi mishra Apr 15 '15 at 07:25
  • Possible duplicate of [How to fix .pch file missing on build?](http://stackoverflow.com/questions/6096384/how-to-fix-pch-file-missing-on-build) – Jim Fell Oct 19 '15 at 15:22

0 Answers0