Hi

I am running vc7 on WinXP

I changed my project (release) configuration (c/c+->Precompiled Headers->Create/use Precompiled Header) from "Create Precompiled Header" to "Use precompiled header", then I got the fatal error from all the .cpp files in my project pointing to one project file, so if I have 10 .cpp files (including myfiile.cpp), I will get 10 errors, including myfile.cpp complainning it self
-----------------------
..
\myproject\eachfile.cpp(1) : fatal error C1084: Cannot read CLR runtime data file: ' \myproject\release\myfile.obj': <Unknown
..
\myproject\myfile.cpp(1) : fatal error C1084: Cannot read CLR runtime data file: ' \myproject\release\myfile.obj': <Unknown
..
-----------------------

What is the problem here? Can anybody help

Thanks
Peter

Re: fatal error C1084: Cannot read CLR runtime data file: ... by Igor

Igor
Fri Feb 06 16:21:52 CST 2004

"Peter" <anonymous@discussions.microsoft.com> wrote in message
news:87390D09-2BB8-4A72-A605-DB960EEC0A0F@microsoft.com...
> I am running vc7 on WinXP.
>
> I changed my project (release) configuration (c/c+->Precompiled
Headers->Create/use Precompiled Header) from "Create Precompiled Header"
to "Use precompiled header", then I got the fatal error from all the
.cpp files in my project

So, do you have at least one file in your project set to Create
Precompiled Header? If nobody is creating it, how do you expect other
files to successfully use it?

Typically, you have one .h file (traditionally called stdafx.h) that
just contains a bunch of #include's for all rarely changing headers in
your project (Windows and CRT headers are good candidates). Then you
have one .cpp file (traditionally called stdafx.cpp) that contains
#include "stdafx.h" and nothing else. Then you set stdafx.cpp to Create
Precompiled Header, and all other files to Use Precompiled Header.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken