VC 8

  • Thread starter Thread starter Alamelu
  • Start date Start date
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
 
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
 
Back
Top