Discussion:
Compiler Warning - Cannot create pre-compiled header: write failed
(too old to reply)
Barry
2008-04-18 08:28:59 UTC
Permalink
Just installed BCB5 Pro, on a new Win x64 Quad PC, and although have
used it successfully on a small NEW app started from scratch, tried
Compiling an existing application, and get the following Warnings (see
below)

What does it mean?

As a point of reference I also had to install one 3rd party Package,
namely TxyGraph, which is used in this app. The Installation of the
Package went seamlessly enough, but the first compile error messages for
My App, asked for xyGraph.hpp and xyData.hpp as "include" files, which I
duly copied from the sourse to the
C:\Program Files (x86)\Borland\CBuilder5\Include
folder

These compile errors then disappeared, however the following warnings
remain.

I also then checked the same "Include" folder of my laptop (WinXP)where
this app compiles without warnings, and interestingly enough those two
.hpp files are not in the "Include" folder, yet it does not ask for them
during a compile?



Any advice?

Thanks Barry




[C++ Warning] OSSMain.cpp(162): W8004 'WHeight' is assigned a value that
is never used
[C++ Warning] OSSAbout.cpp(3): W8058 Cannot create pre-compiled header:
write failed
[C++ Warning] OSSLoadCondChild.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSPagesDlgLoadEditorTanks.cpp(5): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSMemory.cpp(4): W8058 Cannot create pre-compiled header:
write failed
[C++ Warning] OSSTankData.cpp(10): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSplashSource.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSPagesDlgLoadEditorFixed.cpp(5): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSFixedLoads.cpp(7): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSHydrostatics.cpp(9): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSCrossCurves.cpp(9): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSpline.cpp(8): W8058 Cannot create pre-compiled header:
write failed
[C++ Warning] OSSParticulars.cpp(4): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSAddFixed.cpp(6): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSRemoveFixed.cpp(5): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSIntactCondition.cpp(9): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSOptionsFixedItems.cpp(9): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSHydroCCProp.cpp(4): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSGzXYGraph.cpp(8): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSDownFlood.cpp(8): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSTankPlan.cpp(7): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSIntactReport.cpp(8): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSReportDescr.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSevereWindPlot.cpp(6): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSevereWindCalc.cpp(10): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSSevereWindDetails.cpp(3): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSWindOptions.cpp(3): W8058 Cannot create pre-compiled
header: write failed
Barry
2008-04-18 09:28:41 UTC
Permalink
Incidentally the App, run fine, including the xyGraph components.

It just compiles with one of those Warnings for every one of the single
Class.

Barry
Barry
2008-04-21 18:49:44 UTC
Permalink
W8058 Cannot create pre-compiled header: write failed
Anyone tell me what this warning means?

Thanks

Barry
Just installed BCB5 Pro, on a new Win x64 Quad PC, and although have used
it successfully on a small NEW app started from scratch, tried Compiling
an existing application, and get the following Warnings (see below)
What does it mean?
As a point of reference I also had to install one 3rd party Package,
namely TxyGraph, which is used in this app. The Installation of the
Package went seamlessly enough, but the first compile error messages for
My App, asked for xyGraph.hpp and xyData.hpp as "include" files, which I
duly copied from the sourse to the
C:\Program Files (x86)\Borland\CBuilder5\Include
folder
These compile errors then disappeared, however the following warnings
remain.
I also then checked the same "Include" folder of my laptop (WinXP)where
this app compiles without warnings, and interestingly enough those two
.hpp files are not in the "Include" folder, yet it does not ask for them
during a compile?
Any advice?
Thanks Barry
[C++ Warning] OSSMain.cpp(162): W8004 'WHeight' is assigned a value that
is never used
write failed
[C++ Warning] OSSLoadCondChild.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSPagesDlgLoadEditorTanks.cpp(5): W8058 Cannot create
pre-compiled header: write failed
write failed
[C++ Warning] OSSTankData.cpp(10): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSplashSource.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSPagesDlgLoadEditorFixed.cpp(5): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSFixedLoads.cpp(7): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSHydrostatics.cpp(9): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSCrossCurves.cpp(9): W8058 Cannot create pre-compiled
header: write failed
write failed
[C++ Warning] OSSParticulars.cpp(4): W8058 Cannot create pre-compiled
header: write failed
write failed
[C++ Warning] OSSRemoveFixed.cpp(5): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSIntactCondition.cpp(9): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSOptionsFixedItems.cpp(9): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSHydroCCProp.cpp(4): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSGzXYGraph.cpp(8): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSDownFlood.cpp(8): W8058 Cannot create pre-compiled
header: write failed
write failed
[C++ Warning] OSSIntactReport.cpp(8): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSReportDescr.cpp(3): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSevereWindPlot.cpp(6): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSevereWindCalc.cpp(10): W8058 Cannot create pre-compiled
header: write failed
[C++ Warning] OSSSevereWindDetails.cpp(3): W8058 Cannot create
pre-compiled header: write failed
[C++ Warning] OSSWindOptions.cpp(3): W8058 Cannot create pre-compiled
header: write failed
Heath Raftery
2008-04-22 00:59:37 UTC
Permalink
Post by Barry
I also then checked the same "Include" folder of my laptop (WinXP)where
this app compiles without warnings, and interestingly enough those two
.hpp files are not in the "Include" folder, yet it does not ask for them
during a compile?
They could be somewhere else, either with the source or when the
installer put them. Check you project options, under the "Directories/
Conditionals" tab. There's probably an extra entry in the Include path
which includes those files.
Post by Barry
[C++ Warning] OSSMain.cpp(162): W8004 'WHeight' is assigned a value that
is never used
At line 162 of file OSSMain.cpp, the variable WHeight is assigned a
value that is never used.
Post by Barry
write failed
For some reason the compiler couldn't create a new file - check folder
permissions and existance of old files. A pre-compiled header, if
created, will make subsequent compiles much quicker. If it is not
there, it will be created from scratch.
--
*--------------------------------------------------------*
| ^Nothing is foolproof to a sufficiently talented fool^ |
| Heath Raftery, HRSoftWorks _\|/_ |
*______________________________________m_('.')_m_________*
Loading...