Board index » cppbuilder » Compilation not updating exe

Compilation not updating exe


2004-07-19 09:29:10 PM
cppbuilder7
I have started using Borland C++ Version 5 and am trying to do some changes
to a project i am working on. I wrote some code to change the text on a
label as a test and it did not seem to work if i just run the application
(pressing the play button), even though it says it is recompiling the class
i changed. If i rebuild the entire program (or delete the intermediate files
and press the play button) it seems to work ok.
I was wondering if anyone else has had this problem and knows a solution? It
takes about 20 times longer than necessary to rebuild the entire project if
i rebuild the entire thing rather than just the classes that have changed.
Thanks in advance.
Ian
 
 

Re:Compilation not updating exe

Quote
I was wondering if anyone else has had this problem and knows a solution? It
I don't know exactly where is this problem lying, but the wrong date may
generate it.
1. Check the computer date to be accurate and the source files not to be
created in future. (This problem appears especially if you copy the
files from another computer).
2. I had the problem with a right date as well. Sometimes I succeded by
exiting the BCB IDE and restarting it.
3. Using UNDO and doing no modification (or just placing a component on
a form) will generally generate this kind of behavior for BCB. Just hit
an extra key and delete it and save the file. It should work.
4. Make sure you have all updates installed for your BCB version. It was
also a bug in the IDE that was fixed by an update, but I don't remember
more at the moment, neither BCB version, nor service pack number.
Don't be sad if you don't solve it. Sometimes it simply does not work
for me as well. Hope that it helps.
Calin
 

Re:Compilation not updating exe

I have experienced this with pre-compiled headers turned on, and sometimes
even without. I think the compiler and/or linker
is using a cahced version and not noticing code changes? None the less,
ensure you download the new linker from Borlands site targeted for BCB5 as
it fixes a number of problems, especially in larger projects. Likewise when
you see this behaviour, try explicitly compiling just the individual module
(alt-F9) then click on the play button and see if that helps.
"Ian Inglis" < XXXX@XXXXX.COM >wrote in message
Quote
I have started using Borland C++ Version 5 and am trying to do some
changes
to a project i am working on. I wrote some code to change the text on a
label as a test and it did not seem to work if i just run the application
(pressing the play button), even though it says it is recompiling the
class
i changed. If i rebuild the entire program (or delete the intermediate
files
and press the play button) it seems to work ok.

I was wondering if anyone else has had this problem and knows a solution?
It
takes about 20 times longer than necessary to rebuild the entire project
if
i rebuild the entire thing rather than just the classes that have changed.

Thanks in advance.

Ian


 

{smallsort}