The solution to my problem was that it was trying to load libraries from the path
-L/cygdrive/d/Android/NDK/platforms/android-9/arch-x86/usr/lib
-L/cygdrive/d/Android/NDK/sources/cxx-stl/gnu-libstdc++/4.6/libs/x86
which is indeed right location on my drive but not correct path on Windows.
I had to hardocde this part of the code with Windows understandable path text as:
-LD:/Android/NDK/platforms/android-9/arch-x86/usr/lib
-LD:/Android/NDK/sources/cxx-stl/gnu-libstdc++/4.6/libs/x86