Home » Community » Newbie corner » CPP file dependency
Re: CPP file dependency [message #33871 is a reply to message #33860] |
Tue, 20 September 2011 12:04   |
raxvan
Messages: 60 Registered: December 2009
|
Member |
|
|
dolik.rce wrote on Mon, 19 September 2011 21:28 | Hi Raxvan
If you change a .cpp file, only this single file needs to be rebuild (there are some exceptions, when you use macros heavily, but that is ignored by theide). If you use BLITZ then you might need to recompile the entire "blitz batch" in case that the file you just changed was part of it in the last rebuild.
If you change an .h file, theide will rebuild all .c and .cpp files that include this file. Also files included recursively (i.e. through other .h files) are rebuild. Again, if the "blitz batch" contents change or if any of the files in it includes the changed .h file, then it will be rebuild.
I think these are the basic rules that are used in theide. Does that answer your question sufficiently?
Best regards,
Honza
|
Thanks for the reply, i was interested if an external tool is used or the dependency checker is build in house.
In theide, is it safe if i use macro magic like #include MY_FILE and MY_FILE is defined in some other place? How do you scan then for dependencies without implementing a full preprocessor? This is basically my initial problem. How to solve a dependency if "#include MY_FILE" is used.
Raxvan.
92b48bf94855483bb4cec8bcc8c0c933
|
|
|
Goto Forum:
Current Time: Fri Jul 18 03:48:13 CEST 2025
Total time taken to generate the page: 0.03800 seconds
|