Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler Warning question

Status
Not open for further replies.

BubbaDave

Programmer
Dec 30, 2000
23
US
Hi,

My problem is I get the following message when I compile my code.

Cannot create pre-compiled header; write failed

The help file says that this occurs when the hard drive is full...I have 65GB available.

I am using BCB6 on a WinXP machine. I have my settings to use pre-compiled headers. I can turn it off, but I would like to get the extra compile speed by caching the headers.

Any help with this will be appreciated. Thanks.
 
It could be that you need to move the #pragma hdrstop.

In my unit-files i have:
#include <vcl.h>
#pragma hdrstop

and then my own includes and extras and such. Try set that configuration in all of your files in the project and see if it makes a change.

The files are still cached and only files in need of recompiling will be compiled.


Totte
Keep making it perfect and it will end up broken.
 
I see this alot on my older code that was orginally compiled under BCB3 & 5. It is just a warning and everything should work correctly. Try Totte's suggestion and let us know what happens.

James P. Cottingham
-----------------------------------------
To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.
 
Thanks, Totte. I checked the placement of the #pragma hdrstop. ..it was in the same relative location as your example, so I tried moving it to the top of the file. It worked like a charm. Now I am going to go to the help files and books to learn what the hdrstop pragma is!

Thanks again.

Dave


If it aint broke, fix it till it is.
 
Great!

But move the
#include <vcl.h> up too, the
#pragma hdrstop is some definition of Headerstop, i take it that it's some stop for the "build-in" headers. I always fill in below those lines and i recommend the same for you.

Totte
Keep making it perfect and it will end up broken.
 
just a mention about pre compiled headers. borland have stated that using them with bcb6 can increase compile times by up to a third. ie bug. and suggests you clear them out of your bin folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top