Search code examples
cgccmacroseclipse-cdtpreprocessor

Eclipse CDT: Where should I define a macro


Where should I define preprocessors macros so that eclipse calls gcc with the -D marco=def arguments

I tried with Project Properties > C/C++ General > Preprocessor Include, Path, Macros etc... but the arguments are not passed to the toolchain.


Solution

  • This setting is indeed located in Project Properties, but in C/C++ Build:

    indeed