473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

PCH problem with VC8

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
Jun 24 '06 #1
1 1362
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 C0*********************@positivenetworks.net,
"Steve Dispensa" <di******@positivenetworks.net> wrote:
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


Jun 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Madhusudan Singh | last post by:
Hi After months of waiting for Redhat to come out with up to date rpms, I decided to compile a working OpenSSL/ MySQL / PHP / httpd installation for myself. Installed the latest versions of...
0
by: Alexander Skwar | last post by:
Hello! I'm having problems getting PHP 4.3.3RC4 successfully to install on my HP-UX 11.00 server. After a (successfull?) compile, "make install" errors out with this error message: ...
7
by: Darren Gamble | last post by:
Good day, I've sent a message on this to the php-general list already, but unfortunately no one replied. Sorry for the repost. to those that read both... I'm having a problem working with an...
7
by: kecebong | last post by:
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.
0
by: Slavik | last post by:
All libraries were installed (precompiled) This is FreeBSD 5.1 installed zlib, installed jpeg and png libraries (in default directories) GD 2.0.11 source is in /usr/gd-2.0.11 (compiled and...
3
by: Garrett Albright | last post by:
Trying to compile PHP 5 beta 4, and not having much fun... % ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2 --with-curl --with-gd --with-mhash --with-pspell...
0
by: LRW | last post by:
(Not even sure if that's the right way to word the question.) We're trying to migrate to a new server, and upgrade the PHP on the new server in the process. We're using a RedHat Enterprise Server...
9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
3
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked...
13
by: Gary Quiring | last post by:
I need to create an XML string using PHP5. The examples I have followed seem to be using out dated libary calls. I tried new_xmldoc() and new DomDocument. Both get undefined errors. How do I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.