Ok, then you've the 'classic' mingw on vista problem. You have to update your mingw runtime. Download it from sf.net/projects/mingw (Download section, 'mingw runtime') and unpack it to your mingw install dir.
See also mingw-users mailing list about the discussion using mingw/vista.
Bookmarks