解决办法fatal error C1083: Cannot open precompiled header file: *.pcb
2014-04-17 10:39
381 查看
Right-click on your project in the Solution Explorer.
Click Properties at the bottom of the drop-down menu.
At the top left of the Properties Pages, select All Configurations from the drop-down menu.
Open the C/C++ tree and select Precompiled Headers
Precompiled Header: Select Use (/Yu)
Fill in the Precompiled Header File field. Standard is stdafx.h
Click Okay
If you do not have stdafx.h in your Header Files put it there. Edit it to #include all the headers you want precompiled.
Put a file named stdafx.cpp into your project. Put #include "stdafx.h" at the top of it, and nothing else.
Right-click on stdafx.cpp in Solution Explorer. Select Properties and All configurations again as in step 4 ...
... but this time select Precompiled Header Create (/Yc). This will only bind to the one file stdafx.cpp.
Put #include "stdafx.h" at the very top of all your source files.
Lucky 13. Cross your fingers and hit Build.
Click Properties at the bottom of the drop-down menu.
At the top left of the Properties Pages, select All Configurations from the drop-down menu.
Open the C/C++ tree and select Precompiled Headers
Precompiled Header: Select Use (/Yu)
Fill in the Precompiled Header File field. Standard is stdafx.h
Click Okay
If you do not have stdafx.h in your Header Files put it there. Edit it to #include all the headers you want precompiled.
Put a file named stdafx.cpp into your project. Put #include "stdafx.h" at the top of it, and nothing else.
Right-click on stdafx.cpp in Solution Explorer. Select Properties and All configurations again as in step 4 ...
... but this time select Precompiled Header Create (/Yc). This will only bind to the one file stdafx.cpp.
Put #include "stdafx.h" at the very top of all your source files.
Lucky 13. Cross your fingers and hit Build.
相关文章推荐
- Cannot open precompiled header file: 'Release/BeastScaner.pch' 解决办法
- 打开一个类文件时出现:Cannot open precompiled header file 的错误的解决方法
- vc 出现“fatal error C1085: Cannot write precompiled header file: 'Debug/xxx.pch': The parameter is incorrect“的错误的解决办法
- 关于fatal error C1083: Cannot open precompiled header file: /'Debug…….pch/': 错 问题的解决
- 打开一个类文件时出现:Cannot open precompiled header file 的错误的解决方法
- 如何解决 fatal error C1083: Cannot open precompiled header file
- 解决 Cannot open precompiled header file: 'Debug/****.pch'
- fatal error C1083: Cannot open precompiled header file: 'Debug/dian.pch': No such file or directoy解决
- 解决VC编译错误:c1083 cannot open precompiled header file
- fatal error C1083: Cannot open precompiled header file: 'Debug/324.pch': No such file or directory
- vc++ 6.0 fatal error C1083: Cannot open precompiled header file: 'Debug/Hello.pch': No such file or
- Cannot open precompiled header file: 'Debug/****.pch': No such file or directory
- Cannot open precompiled header file:'Debug/password.pch' No such file or directory
- VC编译程序时Cannot open precompiled header file: 'Debug/****.pch&#...
- fatal error C1083: Cannot open precompiled header file: 'Debug\xxoo.pch': No such file or directory
- 编译错误 fatal error C1083: Cannot open precompiled header file
- 关于fatal error C1083: Cannot open precompiled header file:/'Debug/v13_3.pch/': 错
- Cannot open precompiled header file:'Debug/password.pch' No such file or directory
- 预编译头文件及fatal error C1083: Cannot open precompiled header file:Release/***.pch
- fatal error C1083: Cannot open precompiled header file: 'Debug/Graphic2.pch'