Let me guess:
the first one (on your PC) is a standalone-file, without a project,
the second one (on the laptop) is a project you compile.
Nevertheless that should not make a different except for the file paths.
Try to make sure, you do not have any spaces in the projects and in the programs path.
If I remember right there are MinGW versions that have problems with spaces in the path.
If all that does not work, I strictly recommend to use a newer (really vista-compatible) of MinGW ad Tim stated before.