Home » Community » Newbie corner » CPP file dependency
Re: CPP file dependency [message #33872 is a reply to message #33871] |
Tue, 20 September 2011 12:53   |
|
raxvan wrote on Tue, 20 September 2011 12:04 | 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.
|
Nope, as of now TheIDE doesn't understand macros very well, so this is not really safe. On POSIX platforms you could use "touch" as custom build step to force update of the files with the #include, but that is not portable and in some cases it would result into rebuilding everything all the time...
If you know that the definition of MY_FILE will not change too often you can ignore it, but be sure to use "Clean package" after each such change. What exactly are you trying to achieve? Maybe we can try to find some other solution?
Honza
|
|
|
Goto Forum:
Current Time: Fri Jul 18 03:44:34 CEST 2025
Total time taken to generate the page: 0.04073 seconds
|