Search code examples
eclipsecompilation

strange behaviour of the Eclipse


I have some problems with Eclipse:

Sometimes I write the code and compile it and all works perfectly, after I begin to change my code and compile one more time, but Eclipse does nothing.
Only after I delete the folder Debug it compiles the program

My question is why? And how can I switch the behaviour to compile every time from the beginning.
For example:

if(x == 0)        # ... I compile, and it works...
# after I do one change to my code 
if(x==0 && y==0)  # ... Eclipse do nothing even if y is not declared

Solution

  • I suppose you are talking about a CDT project (C/C++), not a JDT one (Java).

    If so, not that if you delete the debug folder, you cannot run directly the application (bug 296243).

    Check if the 'Build (Build Incremental)' is disabled or not: bug 198097.