Error 1 error C1083: Cannot open precompiled header file: 'Release\file.pch': No such file or directory |
You got the anser from you output :)
You have to create a precompiled header your self because visual studio does not do that for you (it does only first time)
Here are the steps on how to solve this problem:
Set up your compiler to release mode.
Right click on solution and click clean solution.
Right click your poject name and naviage to:
Configuration properties > C\C++ > Precomiled headers > Precomiled header > set to
Creae \Yc
Click OK and close property page.
Hit F7 to build your solution.
Now you have created an precompiled header,
Next do this:
Right click your poject name and naviage to:
Configuration properties > C\C++ > Precomiled headers > Precomiled header > set to
Use \Yu
Click OK and close property page.
Hit F7 to build your solution.
Hit F5 to start debuging.
Hope this help.
edit:
This of course assumes you have a header in yuor project whose name is the same as one stored in
Configuration properties > C\C++ > Precomiled headers > Precompiled header file.