Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Language Settings (was: CDT survey)

kesselhaus wrote:
> I just found something else strange:
> 
> If I add something in C/C++ General -> PreProcessor Include Paths, Macros, etc. page like a lib or include path, why they are not also taken into account for compiling? I have to add them again in the C/C++ Build pages for the compiler/linker, but is this really intended?

I have been confused by this as well. Let's see if I got this straight: The "C/C++ General" > "Preprocessor Include Paths, Macros etc." page is for getting settings *from the compiler to CDT*. It's the sucessor of "scanner discovery". You should only make manual entries there for things that the compiler already knows about by some other way (but CDT doesn't). What you want is "C/C++ General" > "Paths and Symbols", which is for getting settings *from CDT to the compiler*, and should mirror what you see in "C/C++ Build" > "Settings". Once you have your setting in "Paths and Symbols", CDT knows about it and there should be no need to also add it in "Preprocessor Include Paths, Macros etc.".

Experts, is that correct? Is there a way to make this less confusing? I think at least the naming of the "Preprocessor Include Paths, Macros etc." page is unfortunate, as it doesn't give any hint that it's for discovering, not for specifying settings.

 -Christian



Back to the top