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/micro...es.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