0

In my program I have 3 files right now. main.cpp, DirectXTemplatePCH.h, DirectXTemplatePCH.cpp The only line in DirectXTemplatePCH.cpp file is the include for the header. I have gone into the properties and with All Configurations selected Configuration Properties > C/C++ > Precompiled Headers the Precompiled Header option is set to Use(/Yu), and the Precomiled Header File is DirectXTemplatePCH.h. Then Under just the DirectXTemplatePCH.cpp file the PreCompiled Header is set to Create(/Yc). This should be all that I need to do, but whatever I try to do it keeps giving me an error saying "fatal error C1003: Cannot open include file: 'DirectXTemplatePCH.h': No such file or directory". All the .cpp and .h files are in the same folder.

Desenski
  • 61
  • 1
  • 3
  • 9

0 Answers0