Click to See Complete Forum and Search --> : Problems with the debug build
gurupot
August 3rd, 2004, 04:44 PM
When I do a release build of a VC++ project in .Net it builds fine. But when I do the debug build it gives me errors like
"'include' statement specified with the /Ycstdafx.h
command-line option was not found in the source file"
Does anyone know what could be wrong???
LuciWiz
August 5th, 2004, 06:51 AM
Well, the /Yc option instructs the compiler to create a precompiled header file (.pch).
When you use /YcheaderFile, you specify to the compiler to compile all code up to and including the header file specified.
It seems strange (to me, at least :)) that it expects you to use this....
I suggest you try disabling precompiled headers for your application.
For more (and much better) explanations see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vclrfyignoreprecompiledheaderoptions.asp
Best regards,
Luci
drm15
January 27th, 2005, 10:54 AM
I am having the same problem, but when I change it to not use precompiled headers I get the following error:
error D2016 : '/YXstdafx.h' and '/clr' command-line options are incompatible
Any thoughts?
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.