OMG finally I got it, thank you all for all the help.
The issue came down to incompatibility with compiler and my computer's architecture, I got an architecture of x64 but downloaded and installed x86 version of Mingw(which is Mingw32 in there offical website). I had to download not Mingw but mingw-w64 instead and then get the correct version of the library and finally everything worked