I created a MFC project with Visual C++. I understand that I can apply XZip with my created MFC project since it is a Win32 program. But when I attempt to add XZip.cpp in it, I received a “Fatal Error C1010: Unexpected end of file while looking for precompiled header directive.” I have tried to change the settings for precompiled headers in C++ but still get the same error. How can I fix this?
Fatal Error C1010 when adding XZip to MFC Project
DearJames watson
According to Microsoft support page regarding the error message you applied "C1010 Error", here you are the most common causes of the error and how to resolve it.
– You may have specified an include file with /Yu (Use Precompiled Header) command line option and it is not listed in the source file, Use Precompiled Header is set as header file name by default by stdafx.h. To resolve this issue, if you didn't use precompiled headers yet set the "Create/Use Precompiled Header" property of the source files to "Not Using Precompiled Headers".
– You deleted a #include statement by mistake from the referenced source file.
Hope this may help you.
Best of luck