Looks like you've mixed something up. You compile with nmake (== Visual Studio) but your compiler is gcc... you have to use mingw32-make when compiling with gcc.