473,670 Members | 2,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with PCH on Windows 2000 SP4

Dear world,

We are having issues with Windows 2000 SP4 and Pre-Compiled Header
(PCH) files that have been previously compiled on Windows XP using
..NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc
does work, but we really want to ship one PCH file to our customers
that will work on all versions of Windows.

Thanks very much

Paul.

PS The compiler output is below:
cl /c /G6 /O2 /W1 /Gd /vmg /MD /GX /EHs /DNO_STRICT /I"C:\Program
Files\Proph_72\ data" /I"C:\Program Files\Microsoft Visual Studio .NET
2003\vc7\includ e" /I"C:\Program Files\Microsoft Visual Studio .NET
2003\vc7\Platfo rmSDK\include" /YuWatrunPreComp iled.h /Fp"C:\Program
Files\Proph_72\ full_acc\PreCom p\DotNETWatr_20 03.PCH"

cl : Command line warning D4029 : optimization is not available in the
standard edition compiler

C0000000.cpp

C:\Prophet\Prop het 72\Proph VA Prod\N\C0000000 .CPP(3) : warning C4653:
compiler option 'Optimizations (one or more of /Oawstgp[y]) or debug
checks (one or more of /GZ, /RTCcsu)' inconsistent with precompiled
header; current command-line option ignored

c1xx : fatal error C1001: INTERNAL COMPILER ERROR

(compiler file 'C:\Program
Files\Proph_72\ full_acc\PreCom p\DotNETWatr_20 03.PCH', line 1)

Please choose the Technical Support command on the Visual C++

Help menu, or open the Technical Support help file for more
information

cpg00000.cpp

c1xx : fatal error C1060: compiler is out of heap space

c1xx : fatal error C1063: INTERNAL COMPILER ERROR
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information
Nov 17 '05 #1
3 2675
Paul wrote:
Dear world,

We are having issues with Windows 2000 SP4 and Pre-Compiled Header
(PCH) files that have been previously compiled on Windows XP using
.NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc
does work, but we really want to ship one PCH file to our customers
that will work on all versions of Windows.


AFIAK, there's no guarantee that PCH files are portable off the machine
where they were created, regardless of OS vrersion. That you've been able
to do it at all is just luck. I'd like to be proven wrong about this - but
that's my understanding.

-cd

Nov 17 '05 #2
DO NOT SHIP PCH FILES!!

They are guaranteed to work only a single machine that has nothing change in
the interim (hotfix, SP, whatever to the OS, the compiler, the CLR or
anything else basically). They are simply a dump of memory at the time we
have generated the info. Anything that changes that memory layout will make
them incompatible.

Ronald Laeremans
Visual C++ team

"Carl Daniel [VC++ MVP]" <cp************ *************** **@mvps.org.nos pam>
wrote in message news:eE******** ******@TK2MSFTN GP12.phx.gbl...
Paul wrote:
Dear world,

We are having issues with Windows 2000 SP4 and Pre-Compiled Header
(PCH) files that have been previously compiled on Windows XP using
.NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc
does work, but we really want to ship one PCH file to our customers
that will work on all versions of Windows.
AFIAK, there's no guarantee that PCH files are portable off the machine
where they were created, regardless of OS vrersion. That you've been able
to do it at all is just luck. I'd like to be proven wrong about this -

but that's my understanding.

-cd

Nov 17 '05 #3
Hi Ronald + Carl,

We have been shipping PCH files for some time now, but I think you are
right that we have been very lucky that most of our clients haven't
hit compile problems until now. We will be making changes to our
product to regenerate PCH files on the target platform.

Thanks very much for the quick response guys and it's also pleasing to
see to see somebody from Microsoft replying!

Best regards,

Paul :)

"Ronald Laeremans [MSFT]" <ro*****@online .microsoft.com> wrote in message news:<#P******* *******@TK2MSFT NGP11.phx.gbl>. ..
DO NOT SHIP PCH FILES!!

They are guaranteed to work only a single machine that has nothing change in
the interim (hotfix, SP, whatever to the OS, the compiler, the CLR or
anything else basically). They are simply a dump of memory at the time we
have generated the info. Anything that changes that memory layout will make
them incompatible.

Ronald Laeremans
Visual C++ team

"Carl Daniel [VC++ MVP]" <cp************ *************** **@mvps.org.nos pam>
wrote in message news:eE******** ******@TK2MSFTN GP12.phx.gbl...
Paul wrote:
Dear world,

We are having issues with Windows 2000 SP4 and Pre-Compiled Header
(PCH) files that have been previously compiled on Windows XP using
.NET 2003. Recompiling the PCH files on Windows 2000 SP4 using /Yc
does work, but we really want to ship one PCH file to our customers
that will work on all versions of Windows.


AFIAK, there's no guarantee that PCH files are portable off the machine
where they were created, regardless of OS vrersion. That you've been able
to do it at all is just luck. I'd like to be proven wrong about this -

but
that's my understanding.

-cd

Nov 17 '05 #4

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

Similar topics

0
4658
by: Nitec Dev | last post by:
Our setup: server1 ASP database running on IIS5, Outlook 2000 and SQL 2000 on Windows 2000. Server2 runs Windows 2000 with Exchange 2000 using CDO 1.2 MAPI Sessions. Clients use IE5/6 and had Outlook 2000 installed. Upgraded to ASP running on IIS6, Outlook 2000 and SQL 2000 on Windows 2003. Server2 runs windows 2003 with Exchange 2003 using CDO 1.2 MAPI Sessions. Clients use IE5/6 and have Outlook 2000/2003 installed.
0
1465
by: Robert | last post by:
Hello, I'm using the http://www.codeworks.it/net/VBNetRs232.htm rs232 class to communicate with a portable instrument. It runs like a dream in Windows NT/2000/XP But in Windows 98 I get tons of time out errors. (This is on the _same_ pc with NT/98 dual boot) It's running at 115.2 kbps and 57.6 kbps with the same problem (9k6 works fine though, but waaay to slow)
1
3040
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
2
1467
by: Stimp | last post by:
This is a query to do with classic ASP (written through vbscript). I am trying to run an asp page on my local Windows 2000 machine which creates a folder in the root directory of my site, but when I run the page it simply hangs when it gets to the FileSystemObject folder creation part (when I remove this line of code, the rest of the page works fine) The code is fine because it is working on the live server, so the problem is with the...
4
1405
by: Michael Augustine | last post by:
I am having problems debugging an Web form app in .net. I am getting the following error message "Unable to Start Debugging on the Webserver. Catostrophic Failure." I think the problem has to do with the machine not being properly set up. What steps do I need to do to get a machine setup to debug a ASP.Net web form. Thanks.
16
2382
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. Example: After about 5 hours with a concurrent user base of about 150 users the application raises the aspnet_wp memory usage by almost 500MB. If our server guys modify the web.config this data is released and the workerprocess goes back to a...
4
3520
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
0
3044
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
3
1966
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the new format (compiling with /clr:OldSyntax): everything works and compiles fine. Unfortunately, I cannot link to the newly created DLL from any other application/DLL: LNK2019: unresolved external symbol. I've checked the DLL
0
8466
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8901
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8813
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6212
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.