title: Android NDK #define Problems
body: <p>When I add #define to either main.cpp or one of my headers called from main.cpp, it does not seem to be defined in other files. </p>
  
  <p>For example, in main.cpp I might do something like:</p>
  
  <pre><code>#define TEST_FOO 1
  </code></pre>
  
  <p>Then in one of my other files, for example secondfile.cpp, TEST_FOO is ignored as if it was never defined:</p>
  
  <pre><code>#if TEST_FOO
  // do something &lt;- this never gets reached
  #endif
  </code></pre>
  
  <p>Even if in the Android.mk file I place secondfile.cpp after main.cpp:</p>
  
  <pre><code>LOCAL_SRC_FILES := main.cpp \
                     secondfile.cpp
  </code></pre>
  
  <p>Is there a way to #define values in Android NDK inside the actual code?</p>