Fatal Error C1083 .pch
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to fix .pch file missing on build? up vote 73 down vote favorite 19 When I build my c++ solution in Visual Studio 2008 it complains that the xxxxx.pch file is missing. Is there a setting I am missing to get the pre-compiled headers back? here is the exact error for completeness: Error 1 fatal error C1083: Cannot open precompiled header file: 'Debug\xxxxx.pch': No such file or directory c++ visual-studio-2008 share|improve this question edited May 23 '11 at 14:28 asked May 23 '11 at 11:10 Sam Mackrill 1,42842144 you have to provide more info. what error exactly are you getting? how is your project currently configured? –Assaf Lavie May 23 '11 at 11:27 Just a simple rebuild all fixed my problem. –Deqing Sep 15 at 6:57 add a comment| 6 Answers 6 active oldest votes up vote 194 down vote accepted 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. (Unix or cygwin users: find . -name "*.cpp" | xargs -n1 sed -i '1s/^/#include "stdafx.h"\n/') Lucky 13. Cross your fingers and hit Build. share|improve this answer edited Jun 4 '14 at 9:44 Cookie 4,48883359 answered Sep 7 '12 at 21:49 Jive Dadson 5,93662944 17 I didn't know stdafx.cpp should have different s
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. C/C++ Building Reference C/C++ Build Errors Compiler Fatal Errors C999 through C1999 Compiler Fatal Errors C999 through C1999 Fatal Error C1083 Fatal Error C1083 Fatal Error C1083 Fatal Error C999 http://stackoverflow.com/questions/6096384/how-to-fix-pch-file-missing-on-build Fatal Error C1001 Fatal Error C1002 Fatal Error C1003 Fatal Error C1004 Fatal Error C1005 Fatal Error C1007 Fatal Error C1008 Fatal Error C1009 Fatal Error C1010 Fatal Error C1012 Fatal Error C1013 Fatal Error C1014 Fatal Error C1016 Fatal Error C1017 Fatal Error C1018 Fatal Error C1019 Fatal Error C1020 Fatal Error C1021 Fatal Error C1022 https://msdn.microsoft.com/en-us/library/et4zwx34.aspx Fatal Error C1023 Fatal Error C1026 Fatal Error C1033 Fatal Error C1035 Fatal Error C1037 Fatal Error C1038 Fatal Error C1045 Fatal Error C1046 Fatal Error C1047 Fatal Error C1051 Fatal Error C1053 Fatal Error C1054 Fatal Error C1055 Fatal Error C1057 Fatal Error C1060 Fatal Error C1061 Fatal Error C1064 Fatal Error C1065 Fatal Error C1067 Fatal Error C1068 Fatal Error C1070 Fatal Error C1071 Fatal Error C1073 Fatal Error C1074 Fatal Error C1075 Fatal Error C1076 Fatal Error C1077 Fatal Error C1079 Fatal Error C1080 Fatal Error C1081 Fatal Error C1082 Fatal Error C1083 Fatal Error C1084 Fatal Error C1085 Fatal Error C1086 Fatal Error C1087 Fatal Error C1088 Fatal Error C1089 Fatal Error C1091 Fatal Error C1092 Fatal Error C1093 Fatal Error C1094 Fatal Error C1098 Fatal Error C1099 Fatal Error C1100 Fatal Error C1103 Fatal Error C1104 Fatal Error C1107 Fatal Error C1108 Fatal Error C1109 Fatal Error C1113 Fatal Error C1120 Fatal Error C1121 Fatal Error C1126 Fatal Error C1128 Fatal Error C118
Forum Visual C++ & C++ Programming C++ (Non Visual C++ Issues) Can't Cannot open http://forums.codeguru.com/showthread.php?340362-Can-t-Cannot-open-precompiled-header-file-Debug-test4-pch-No-such-file-or-directo precompiled header file: 'Debug\test4.pch': No such file or directo If this is your first visit, be sure to check out the FAQ by clicking the link above. You http://www.dreamincode.net/forums/topic/159637-fatal-error-c1083-cannot-open-precompiled-header-file/ may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want fatal error to visit from the selection below. Results 1 to 12 of 12 Thread: Can't Cannot open precompiled header file: 'Debug\test4.pch': No such file or directo Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 9th, 2005,07:19 PM #1 fatal error c1083 mloonjin View Profile View Forum Posts Junior Member Join Date Mar 2005 Posts 20 Can't Cannot open precompiled header file: 'Debug\test4.pch': No such file or directo I use the Visual C++ 2005 Express beta2. and here is a simple program i have writed: Code: #include "stdafx.h" #include
file Page 1 of 1 New Topic/Question Reply 12 Replies - 31446 Views - Last Post: 04 March 2010 - 12:46 PM Rate Topic: #1 wild494 D.I.C Head Reputation: 2 Posts: 86 Joined: 20-May 09 fatal error C1083: Cannot open precompiled header file Posted 03 March 2010 - 05:29 PM Ok I'm new to C++ but I'm trying to compile an uno game I found online. I keep running into this error. I'm not sure if I need to put up all the .cpp but I put up the unonet. I just want to see if this can compile without an error. 1>------ Build started: Project: unonet, Configuration: Debug Win32 ------ 1>Compiling... 1>CardsManager.cpp 1>.\CardsManager.cpp(5) : fatal error C1083: Cannot open precompiled header file: '.\vc_mswd\minimal\minimal.pch': Permission denied 1>chatwindow.cpp 1>.\chatwindow.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\vc_mswd\minimal\minimal.pch': Permission denied 1>LayoutManager.cpp 1>.\LayoutManager.cpp(8) : fatal error C1083: Cannot open precompiled header file: '.\vc_mswd\minimal\minimal.pch': Permission denied 1>NetworkManager.cpp 1>.\NetworkManager.cpp(6) : fatal error C1083: Cannot open precompiled header file: '.\vc_mswd\minimal\minimal.pch': Permission denied 1>unonet.cpp 1>.\unonet.cpp(9) : fatal error C1083: Cannot open precompiled header file: '.\vc_mswd\minimal\minimal.pch': Permission denied 1>Generating Code... 1>Build log was saved at "file://c:\Users\Sherry\Desktop\uno\vc_mswd\minimal\BuildLog.htm" 1>unonet - 5 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I've combed the internet and have tried some suggestions but still can't get it to work. Someone please help. Here is the code for the unonet.cpp at least. I'm using Visual Studio C++ 2008. //UNONET game by darshan sonde //licensed under zlib/png license check readme #include "unonet.h" #include "CardsManager.h" #include "LayoutManager.h" #include "NetworkManager.h" #include "Chatwindow.h" #include