User forums > Using Code::Blocks
Forcing re-compiling of a .cpp file upon changes to a .h file
AlexPaes:
Hi everyone,
Here's the issue, i just created a small script that generates a VERSION.H file to be included in my project in order to get up-to-date versioning inside the project. Now i managed to get this script running ok by adding it in the pre-build steps section. Now my problem is that some files that include this VERSION.H don't get recompiled when the .H file changes since the .o file is already on the system. Is there any way i can force a dependency so that when building a given.o file that includes VERSION.H it will actually check the creation dates and rebuild given.o if VERSION.H is more recent?
Btw, i'm running codeblocks 1.0rc2 on linux with gcc 4.0.2.
Thanks to all for your time and help in advance.
mandrav:
--- Quote ---Is there any way i can force a dependency so that when building a given.o file that includes VERSION.H it will actually check the creation dates and rebuild given.o if VERSION.H is more recent?
--- End quote ---
Yes, there is.
--- Quote ---i'm running codeblocks 1.0rc2 on linux with gcc 4.0.2
--- End quote ---
Try a recent version directly from SVN (or a nightly build).
AlexPaes:
hi mandrav, thanks for your post.
To tell you the truth i'm still using 1.0rc2 because i believe i've read somewhere that the export Makefile option was removed(?!?). Can you please inform me if that's the case? The export Makefile makes all the sense to me... spares me a ton of time.
Cheers
Zlika:
This menu is grayed in the recent versions. Why?
thomas:
Export makefile is not working and it will probably not be working until the compiler redesign is finished.
Since it does not work, the UI control for it is greyed out (saves a lot of complaints).
Navigation
[0] Message Index
[#] Next page
Go to full version