Board index » cppbuilder » Re: pre-compiled header problems

Re: pre-compiled header problems


2003-07-11 10:43:07 PM
cppbuilder112
Quote
When I compile fileA, the precompiled header is generated. If I
compile fileA again, the pre-compiled header is used and only the
lines in fileA are compiled. Now if I compile fileB which has exact
the same start in the cpp (#include "precompiled.h" #pragma hdrstop),
the precompiled header is generated again. If I compile fileB again
hereafter, only its lines are compiled. When I compile fileC, the
pre-compiled header is compiled again, etc.
Are you *sure* there's nothing different at the top of the files? It
sure sounds like there must be. Do you have any file specific compilation
flags, like a different directory search or a different define? You
might create a new project and add the files to it and see what happens
then.
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
www.keen.com/categories/categorylist_expand.asp
Comprehensive C++Builder link site:
www.buddydog.org/C++Builder/c++builder.html
 
 

Re:Re: pre-compiled header problems

"Jonathan Arnold" wrote:
Quote
Are you *sure* there's nothing different at the top of the files? It
sure sounds like there must be. Do you have any file specific
compilation
flags, like a different directory search or a different define? You
might create a new project and add the files to it and see what
happens
then.
Positively. The only difference is the file-header which is only
comment. Both file's start with:
<code>
/* File: something
*
* ChangeLog:
* 20030605 Wim ....
*/
#include "project_pch.h"
#pragma hdrstop
</code>
This thing only appears with Forms! I cannot create it with a 'simple'
unit. If I create a new form, copy the CPP, the H and the DFM contents
from the old form to the new form, move the old form files to a
different dir, save the new form with the same name as the old form's
unitname, then my problem also appears with the new form.
I'm going to delete line after line in this file to track down the
cause of this problem. I'll let you know if I have any results.
Meanwhile, I can use some suggestions.
Wim
 

Re:Re: pre-compiled header problems

Solved !
At one time, I've changed local Options for several files. Later, I've
revert the changes, BUT the IDE still kept an entry in the option
source (in the project manager there were marks on these files), I've
removed them by hand.
Wim.
 

{smallsort}