title: mno-cygwin unrecognized command line option error when building c++ library
body: <p>i'm new to c++ and implementing a java application that invoking c++ library methods using java native interface. i'm using Cygwin64.</p>
  
  <p>os: windows 8 64 bit
  JDK: 1.7 64 bit
  gcc 4.8.2</p>
  
  <hr>
  
  <p>but when i try to build my project i'm getting this error</p>
  
  <hr>
  
  <pre><code>"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/LibraryTest'
  cd ../DataProcessor &amp;&amp; /usr/bin/make  -f Makefile CONF=Debug
  make[2]: Entering directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  make[3]: Entering directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/LocationDataProcessor.dll
  make[4]: Entering directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  mkdir -p build/Debug/Cygwin_4.x-Windows
  rm -f build/Debug/Cygwin_4.x-Windows/CppConnector.o.d
  
  
  gcc -mno-cygwin -Wl,--add-stdcall-alias -shared -m32   -c -g  -MMD -MP -MF build/Debug/Cygwin_4.x-Windows/CppConnector.o.d -o build/Debug/Cygwin_4.x-Windows/CppConnector.o CppConnector.c
  gcc: error: unrecognized command line option ‘-mno-cygwin’
  
  
  nbproject/Makefile-Debug.mk:69: recipe for target 'build/Debug/Cygwin_4.x-Windows/CppConnector.o' failed
  make[4]: *** [build/Debug/Cygwin_4.x-Windows/CppConnector.o] Error 1
  make[4]: Leaving directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  nbproject/Makefile-Debug.mk:60: recipe for target '.build-conf' failed
  make[3]: *** [.build-conf] Error 2
  make[3]: Leaving directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
  make[2]: *** [.build-impl] Error 2
  make[2]: Leaving directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/DataProcessor'
  nbproject/Makefile-Debug.mk:74: recipe for target '.build-subprojects' failed
  make[1]: *** [.build-subprojects] Error 2
  make[1]: Leaving directory '/cygdrive/c/Users/User/Documents/NetBeansProjects/LibraryTest'
  nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
  make: *** [.build-impl] Error 2
  </code></pre>
  
  <hr>
  
  <p>i'm stacked with this java c++ integration thing for 4 days. need some help to solve this.
  thanks in advance </p>