I am using BCB 6.0 personal edition. I have a project with several versions.
The different versions created by using the projec copy. The latest version
uses a file from 2 versions earlier. When building the latest version BCB it
includes a file from the earlier version instead of the latest version.
That is, say the project consists of unit1.cpp, unit1.h and extraFile.cpp
and extraFile.cpp includes unit1.h.
Unit1.cpp is copied from the previous version, changed and saved into the
newest version. ExtraFile.cpp is left in the 2nd previous version and has
not been save into any other later version.
When building the latest version and then compiling extraFile.cpp BCB
includes unit1.h from the 2nd previous version and not the latest, current
version.
This seems to be an obvious error in the BCB IDE. There are other files in
my project that are similar in version history as extraFile.cpp which also
include unit1.h but they compile with the correct version of unit1.h. Until
this problem happened I had not interaction with extraFile.cpp, it just
suddenly started happening. A very similar thing happened earlier; the
project compiled the current version of a *.cpp file and also the same file
from an earlier version. I am not sure how I cleared this problem but it was
OK after I recopied and restructed the files.
Can anyone explain what is happening, how to avoid the problem and fix my
current problems. I assume that editing the .bpr file can fix it but it
seems that it will be very difficult to understand it since I do not know
xml.
Thanks in advance,
Bill