Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » CPP file dependency
Re: CPP file dependency [message #33891 is a reply to message #33872] Thu, 22 September 2011 09:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
dolik.rce wrote on Tue, 20 September 2011 06: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...



Actually, the code used to check for dependencies accounts for macros quite well. Otherwise we could not use #include LAYOUTFILE etc... Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple Layouts
Next Topic: NTL_MOVEABLE and other namespaces
Goto Forum:
  


Current Time: Fri Jul 18 03:44:40 CEST 2025

Total time taken to generate the page: 0.04249 seconds