title: C++ errors while compiling titanium mobile 1.8.1 module for android on Windows
body: <p>I am trying to develop an android module for titanium mobile 1.8.1. Here are the tools I am using:</p>
  
  <ul>
  <li>Titanium studio: 1.0.7</li>
  <li>Titanium mobile sdk: 1.8.1</li>
  <li>Android SDK: r16</li>
  <li>Android NDK: r7 (platform: API 8 + google APIs)</li>
  <li>cygwin: 1.7.9-1</li>
  <li>ant: 1.8.2</li>
  <li>gperf: latest</li>
  </ul>
  
  <p>I am following the instructions from here:
  <a href="https://wiki.appcelerator.org/display/guides/Android+Module+Development+Guide" rel="nofollow">https://wiki.appcelerator.org/display/guides/Android+Module+Development+Guide</a>
  and here:
  <a href="https://wiki.appcelerator.org/display/guides/Android+Module+Porting+Guide+for+1.8.0.1" rel="nofollow">https://wiki.appcelerator.org/display/guides/Android+Module+Porting+Guide+for+1.8.0.1</a>
  I have set-up all the PATH and environment variables as requested.
  I am working from command line, using ant (not using eclipse) to build the module.</p>
  
  <p>I am trying to build the module skeleton that was created by titanium "create" command.
  When building, I get cpp errors, like:</p>
  
  <pre><code>jni/&lt;domain&gt;.mymodule.ExampleProxy.h:22: error: expected class-name before '{' token
  </code></pre>
  
  <p>The lines of code producing the error are:</p>
  
  <pre><code>class ExampleProxy : public titanium::Proxy
  {
  </code></pre>
  
  <p>From my c++ experience, this happens when the parent class is not defined.
  But the source file appears to be correctly including a "Proxy.h" file, from the titanium sdk, that correctly defines class "Proxy", in the "titanium" namespace.</p>
  
  <p>Has anyone experienced the same problem and found a solution, or can in some way offer a useful hint?</p>