c++ - #pragma hdrstop -


is there way use pre-compiled headers in vc++ without requiring stdafx.h?

regarding first answer question above,

i tried implement solution using visual studio 2010, , failed:

fatal error c1010: unexpected end of file while looking precompiled header. did forget add '#include "stdafx.h"' source?

any ideas?

the objective not use #include "stdafx.h" anywhere, instead decide on whether or not use during compile time.

if /yc or yu not used, #pragma hdrstop has no effect

if yu used, #pragma hdrstop replaced #include "stdafx.h", or @ least thats claimed behavior.

the error message indicates had option /yu "stdafx.h" when compiling. answer suggested leave "stdafx.h" part of /yu option blank.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -