CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Error Message

  1. #1
    Join Date
    Oct 2006
    Posts
    14

    Error Message

    Can any help me out with a problem I am having. It seems that I have an error that I can't figure out. I cannot make a C++ program because i recieve an error: Error 1 fatal error C1083: Cannot open precompiled header file: 'Debug\Program.pch': No such file or directory c:\westwood\cs210\program\program\main.cpp 3

    If anyone can help that would be great. I have tried to reinstall but the directory isn't there. I do have VS on my back-up computer and i works fine, but I need it on my main computer.

  2. #2
    Join Date
    Aug 2004
    Location
    Chennai, India.
    Posts
    380

    Talking Re: Error Message

    Quote Originally Posted by Zoogy83
    error: Error 1 fatal error C1083: Cannot open precompiled header file: 'Debug\Program.pch': No such file or directory c:\westwood\cs210\program\program\main.cpp 3
    Have you build the project, if you have compiled the class, first build the project and try to compile classes there after.

    Thanx
    dwurity

  3. #3
    Join Date
    May 2005
    Location
    Oregon
    Posts
    3,725

    Re: Error Message

    Delete your Debug Folder From your WorkSpace and Onve Again rebuild your Project.
    Thanx

  4. #4
    Join Date
    Oct 2006
    Posts
    14

    Re: Error Message

    That still didn't work, it seems that something is missing! The "stdafx" files don't show up. Do you guys have anyother tips for me?

    thanks

  5. #5
    Join Date
    May 2005
    Location
    Oregon
    Posts
    3,725

    Re: Error Message

    Some Point from MSDN

    Code:
    Tips 
    
    This error can occur if the file, subdirectory, or disk on which it 
    resides is read-only. In this case, make the file writable or move the 
    file to a writable disk. See your operating system documentation for 
    information on removing the read-only attribute from a file.
    
    This error may be caused by not having enough file handles. Close 
    some open applications and recompile.
    
    Trying to open a file or directory for which you do not have 
    permission can cause this error. Move the file to a directory where 
    you do have access privileges, or ask your network administrator to 
    grant you access to the file.
    
    If an include file could not be opened, check that the INCLUDE 
    environment variable is set correctly and that the name of the file is 
    spelled correctly.
    
    Using double quotation marks around a complete path specification in 
    a #include directive causes the standard directories to NOT be 
    searched. See The #include Directive 
    <_predir_the_.23.include_directive.htm> in the Preprocessor 
    Reference for more information.
    Thanx
    Last edited by humptydumpty; October 17th, 2006 at 12:51 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured