Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Toolchain preprocessor defines not considered

You need to ensure that active configuration is set to the
configuration which contains this preprocessor symbol.  There's a
toggle next to the build icon in the toolbar.  You can also make the
active configuration follow the build configuration in the workspace
preferences under C/C++ Indexer. (Currently following the build
configuration isn't the default because the index must be rebuilt when
changing active configuration.)



On Tue, Dec 2, 2008 at 9:34 PM, Gerhard H. Leonhartsberger
<gerhard@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi!
> I define a preprocessor symbol in Project properties -> C/C++ Build ->
> Settings -> Tool Settings. In my source code I use this preprocessor symbol
> like this:
> #ifdef MY_SYMBOL
> #endif
> The source code within the #ifdef and #endif appears grey even if the
> preprocessor symbol is set. Does the C/C++ editor consider preprocessor
> symbols set by build configuration settings?
> Cheers
> Gerhard
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx

Back to the top