Re:Pre-compiled header
I've got no magic bullet for this, but what's below seems ot have worked for
a couple of people.
Start the compiler with the -np command line option so it doesn't
automatically load a project. If you start it by clicking an icon, right
click the icon and select Properties to get at the command line to insert
the -np
Load the example project Wintools.bpr from the
compiler's Examples\Wintools directory
Do a Project|Build
If it gives the same problem:
Shut down the IDE.
Without any other programs running, run a scandisk
(Win95/98) or chkdsk /f (NT,2K,XP) to detect and
correct any possible file system problems. You
probably don't need to do the "low level" scandisk.
If any bad blocks are found they will become files
named filennnn.chk where nnnn is a number. You
can delete them to free up their disk space.
Check that you've at least 30 Meg free on the
drive which contains Windows and at least
60 Meg free on each of the drive where you are
developing the program and the drive where
C++ Builder is located (they don't sum - if
everything is on C: then make sure C: has
at least 60 Meg free).
If it does not give the same problem:
These settings are from BCB6 on my machine.
Check that yours are the same:
Under Project|Options|Compiler
File_name $(BCB)\lib\vcl60.csm
Cache_pre-compiled_headers checked
Stop_after combo box is empty
Under Project|Options|Directories/Conditionals
Include path $(BCB)\include;$(BCB)\include\vcl
Library path $(BCB)\lib\obj;$(BCB)\lib
Edit your project's *.BPR file while the IDE is not running.
Look for empty paths, paths ending in \" and paths
which do not exist. Correct any you find.
Look for lib names with numbers that previous
version numbers (for instance: vcl30.lib) which
might have come over from the BCB3 project.
. Ed
Quote
> Paul Dowd wrote in message
> news:3e8c1a96@newsgroups.borland.com...
> Since upgrading from BCB3 to BCB6 some time
> ago I have been getting the following messages
> when building:
> C++ warning: cannot create pre-compiled header:
> write failed
> Linker error fatal: access violation: link terminated
> Linker warning: unable to perform incremental link:
> performing full link
> The project still builds and runs, but these messages
> are annoying - any help appreciated.