PC Review


Reply
 
 
Alamelu
Guest
Posts: n/a
 
      22nd Dec 2008
Hi,

I converted a project in VC6 to VC8 and performed a clean build after
compiling stdafx.cpp separately.

In project settings i am using "Use Precompiled Header" options. I want to
use precompiled headers, hence i dont want to go for "Not Using precompiled
Header" options.

When building it gives me the following error
fatal error C1083: Cannot open precompiled header file:
'.\Release\File1.pch': No such file or directory

"Use Precompiled Header" options should create .pch if it is not available
right? What is going wrong?

Regards,
Alamelu
 
Reply With Quote
 
 
 
 
David Lowndes
Guest
Posts: n/a
 
      22nd Dec 2008
>I converted a project in VC6 to VC8 and performed a clean build after
>compiling stdafx.cpp separately.
>
>In project settings i am using "Use Precompiled Header" options. I want to
>use precompiled headers, hence i dont want to go for "Not Using precompiled
>Header" options.
>
>When building it gives me the following error
>fatal error C1083: Cannot open precompiled header file:
>'.\Release\File1.pch': No such file or directory
>
>"Use Precompiled Header" options should create .pch if it is not available
>right? What is going wrong?


Alamelu,

If you look with Explorer, does that directory & file exist?

Assuming the IDE isn't lying and the directory exists but the pch file
doesn't, check the C/C++ Precompiled Headers build settings for just
the stdafx.cpp module - it should be set to /Yc (whereas all the other
modules should be /Yu).

Dave
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 PM.