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

来源:互联网 发布:宇航数控仿真软件 编辑:程序博客网 时间:2024/03/28 23:03

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"