title: header: no such file or directory
body: <p>I have this cpp file:</p>
  
  <pre><code>//pkgnative_tries__native_NativeSystem.cpp
  #include &lt;pkgnative_tries__native_NativeSystem.h&gt;
  #include&lt;iostream&gt;
  using namespace std;
  
  extern "C"
  JNIEXPORT void JNICALL Java_ClassName_MethodName
    (JNIEnv *env, jobject obj, jstring javaString)
  {
      //Get the native string from javaString
      const char *nativeString = env-&gt;GetStringUTFChars(javaString, 0);
      cout &lt;&lt; nativeString;
  
      env-&gt;ReleaseStringUTFChars(javaString, nativeString);
  }
  </code></pre>
  
  <p>pkgnative_tries__native_NativeSystem.h:</p>
  
  <pre><code>/* DO NOT EDIT THIS FILE - it is machine generated */
  #include &lt;jni.h&gt;
  /* Header for class pkgnative_tries__native_NativeSystem */
  
  #ifndef _Included_pkgnative_tries__native_NativeSystem
  #define _Included_pkgnative_tries__native_NativeSystem
  #ifdef __cplusplus
  extern "C" {
  #endif
  /*
   * Class:     pkgnative_tries__native_NativeSystem
   * Method:    println
   * Signature: (Ljava/lang/String;)V
   */
  JNIEXPORT void JNICALL Java_pkgnative_tries__1native_NativeSystem_println
    (JNIEnv *, jobject, jstring);
  
  #ifdef __cplusplus
  }
  #endif
  #endif
  </code></pre>
  
  <p>The problem is that when i try compiling it to a DLL with <code>g++</code>, it says:</p>
  
  <pre class="lang-none prettyprint-override"><code>g++ -c -DBUILDING_EXAMPLE_DLL pkgnative_tries__native_NativeSystem.cpp
  
  pkgnative_tries__native_NativeSystem.cpp:1:50: fatal error: pkgnative_tries__native_NativeSystem.h: No such file or directory
  compilation terminated
  </code></pre>
  
  <p>Does anyone know why? I'm sure that both files are in the same directory</p>