Board index » cppbuilder » Can't create pre-compiled header warnings

Can't create pre-compiled header warnings


2006-05-17 11:43:18 AM
cppbuilder38
I'm in the process of moving from BCB6 to BDS2006 on a WinXP SP2 setup
and when I build my C++ applications I get:
[C++ Warning] IVAcqData.cpp(3): W8058 Cannot create pre-compiled
header: write failed
I checked the Pre-compiled header project options and the file name
specified to use included the path of the old CBuilder plus "vcl.csm".
Isearched for the file on my system but since I've now got a clean
installation it came up empty. I changed the option to create a new
file in the application's root directory and that created the new file
and eliminated the write failed warnings but now I get this:
[C++ Warning] Dialogs.hpp(581): W8058 Cannot create pre-compiled
header: initialized data in header
Anyway to eliminate this warning?
Thanks for any advice,
- Bob
 
 

Re:Can't create pre-compiled header warnings

On Tue, 16 May 2006 21:43:18 -0600, Robert Boyd < XXXX@XXXXX.COM >
wrote:
Quote
I'm in the process of moving from BCB6 to BDS2006 on a WinXP SP2 setup
and when I build my C++ applications I get:

[C++ Warning] IVAcqData.cpp(3): W8058 Cannot create pre-compiled
header: write failed

I checked the Pre-compiled header project options and the file name
specified to use included the path of the old CBuilder plus "vcl.csm".
Isearched for the file on my system but since I've now got a clean
installation it came up empty. I changed the option to create a new
file in the application's root directory and that created the new file
and eliminated the write failed warnings but now I get this:

[C++ Warning] Dialogs.hpp(581): W8058 Cannot create pre-compiled
header: initialized data in header

Anyway to eliminate this warning?

Thanks for any advice,
- Bob
That one is really tough, I know by myself. The only way to get rid of
it is to get the header <Dialogs.hpp>out of the headers included
before #pragma hdrstop.
Zara
 

Re:Can't create pre-compiled header warnings

Quote
[C++ Warning] Dialogs.hpp(581): W8058 Cannot create pre-compiled
header: initialized data in header

Anyway to eliminate this warning?
It depends on which header is initialising data. In BCBv5 I used to get
this a lot when third-party Delphi components (the hpp file) included
math.hpp, which initialised data. I changed math.hpp to math.h and it
worked fine.
 

{smallsort}

Re:Can't create pre-compiled header warnings

On Tue, 16 May 2006 21:43:18 -0600, Robert Boyd < XXXX@XXXXX.COM >
wrote:
Quote
[C++ Warning] Dialogs.hpp(581): W8058 Cannot create pre-compiled
header: initialized data in header

Anyway to eliminate this warning?
it is another longstanding bcc problem. it refuses to create pch when
default parameter values of some types encountered in method
declarations. so in order to get rid of that annoying trouble you may
want to comment out AnsiString default parameter values in
PromptForFileName method
--
Vladimir Ulchenko aka vavan