PCH problem with VC8

S

Steve Dispensa

I'm trying to set up multi-level precompiled headers, as described here:

http://msdn2.microsoft.com/en-us/library/2yzw0wyd.aspx

And I'm running into the problem described here:

http://groups.google.com/group/microsoft.public.dotnet.languages.vc/browse_f
rm/thread/8ee9970037fde00b/695bb61c3804d9ed?lnk=st&q=level2.cpp&rnum=1&hl=en
#695bb61c3804d9ed

Which is, if I try to include a top-level PCH in generating a second-level
PCH, the compiler errors out with this message:

----
fatal error C1083: Cannot open precompiled header file: 'precomp.pch': The
process cannot access the file because it is being used by another process.
----

The .cpp file is simple; it simply includes another header file that was
previously precompiled and a header to be precompiled with it in this pass,
followed by a #pragma hdrstop. Changing the name of the generated pch in the
hdrstop pragma doesn't help.

Ring any bells? Has anyone else actually gotten this working?

Thanks.

-Steve
 

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