building glut - Error executing c:\windows\system32\cmd.exe

I downloaded glut-3.7.6-src. When I try to build glut32.dll, I get:
Error executing c:\windows\system32\cmd.exe

If you know either a way to fix this error, or a way get glut32.lib without building glut, that would solve the problem.

Never mind. It looks like even though the build errored, I still got the file.

this error occurrs probably because glut tries to execute some .bat file to copy your built files or libs somewhere. you should search your glut dir for .bat files and take a look at them to see what they’re supposed to do and what could be wrong.