Simple Problem VC++6
-
This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???
-
This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???
You must either add #include "stdafx.h" BEFORE your include, or change the cpp file "Settings" -> "Precompiled Headers" to "Not using precompiled headers". Cheers, Andy
-
This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???
This was just answered a few threads ago http://www.codeproject.com/cpp/cppforumfaq.asp#cl_nopch[^] --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER