dev c++ uses mingw so it should compile the program without problems.
maybe you didn't configure it correctly and so it tried to use g++ instead of gcc.
while for visual studio take a look here:
http://code.google.com/p/msinttypes/and in general about compiling here:
http://aluigi.org/about.htm#compileall my tools have been compiled using mingw/gcc:
http://www.tdragon.net/recentgcc/http://www.mingw.org