.DLL file creation for windows 7 using Gradle

Hi,

i am getting below excpetion when i am running ‘gradle clean build’ for my project.

Error:

:linkMainSharedLibrary
C:/Program Files/mingw-w64/i686-5.2.0-posix-dwarf-rt_v4-rev0/mingw32/bin/…/lib/
gcc/i686-w64-mingw32/5.2.0/…/…/…/…/i686-w64-mingw32/bin/ld.exe: unrecognized
option '–out-implib …/NativeJNI/src/main/resources/DSresources/DSLib’
C:/Program Files/mingw-w64/i686-5.2.0-posix-dwarf-rt_v4-rev0/mingw32/bin/…/lib/
gcc/i686-w64-mingw32/5.2.0/…/…/…/…/i686-w64-mingw32/bin/ld.exe: use the --he
lp option for usage information
collect2.exe: error: ld returned 1 exit status
:linkMainSharedLibrary FAILED

FAILURE: Build failed with an exception.

can somebody assist me to resolve this issue.