Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>1) If you want to change the defines for your system based on build configuration, you need to do as dgrant said: "Project properties and select C/C++ General->Paths and Symbols then select the Symbols tab", but you need to make sure you have the correct configuration selected at the top of your window. Also be sure when you add the symbol to the list that you DON'T check the "add to all configurations" checkbox. </p> <p>2) If you want your correct set of symbols to be parsed by CDT in your editor, you'll also need to make sure you have the correct build configuration active as well. To do that, right click on your project and select Build Configurations->Set Active-> and select the build configuration you want to make active. CDT will now parse all the files as if this build configuration were active instead, using the global symbols you defined in the last step.</p> <p>There is a problem I've seen with every version of Eclipse where it doesn't always decide to rebuild your index files immediately. To get it to do so, you can either start a build (the build doesn't actually have to complete), or you can right click on your project and go to Index->Rebuild. Both cause an immediate re-indexing to occur. You shouldn't need this however, I can confirm that simply changing the build configuration as described in step 2 above will cause a #ifdef that checks for a symbol defined only in one of my build configurations immediately causes it to become greyed-out or un-greyed-out as it should.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload