Thread: Error C1083: Cannot open precompiled header file

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    38

    Error C1083: Cannot open precompiled header file

    Error C1083: Cannot open precompiled header file:'Debug\(What I named the file).pch

    I can't compile this due to the error listed. I usually don't use this template for writing so I'm not familiar with it. I don't see how a header file can be missing if it was there when I choose new project then click clr under visual c++ then clr console application.



    Code:
    #include "stdafx.h"
    
    using namespace System;
    
    enum class Months {January=1, February, March, April, May, June, July, August, Semptember, October, November, December};
    
    int main(array<System::String ^> ^args)
    {
    	Months::month = Months::January;
    	int value = safe_cast<int>(month);
    	for(int x=1; x<13; x++){
    		Console::WriteLine(L"The numerical value of {0} is {1}", month, value);
    		month++;
    	}
    	
        return 0;
    }

  2. #2
    Programming King Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Middle of NoWhere
    Posts
    320
    And what is this? Your code?
    I don't care if someone doesn't like me, i was not put on earth to entertain everyone.

    No King, no Queen, I am the ACE of battle.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. header file compile error
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 02-23-2002, 06:28 AM
  4. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM