DSP

常见vc 6.0错误解决办法(逐渐增加)

2019-07-13 15:58发布

1、fatal error C1083: Cannot open precompiled header file: 'Debug/Hello.pch': No such file or directory  用记事本打开.dsp文件,找到关于这样一段:
                            SOURCE=.StdAfx.cpp
                            # End Source File
                            # End Group
                            # Begin Group "Header Files"
 发现少了一个编译开关的,所以不能生成.pch文件的:加上
开关# ADD CPP /Yc"stdafx.h"
成如下即可。
                            SOURCE=.StdAfx.cpp
                            # ADD CPP /Yc"stdafx.h"
                            # End Source File
                            # End Group
                            # Begin Group "Header Files"