Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PCH problem with VC8

0 views
Skip to first unread message

Steve Dispensa

unread,
Jun 23, 2006, 10:09:44 PM6/23/06
to
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

Steve Dispensa

unread,
Jun 24, 2006, 4:08:59 AM6/24/06
to
To answer this question: it's a compiler bug in Visual Studio 2005 (cl 14).
Details at http://kernelmustard.com/2006/06/24/pch-mystery-solved/ for the
curious.

-Steve

On 6/23/06 9:09 PM, in article C0C20918.11344%disp...@positivenetworks.net,

0 new messages