VC 8

A

Alamelu

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
 
D

David Lowndes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top