[cfe-dev] Extra #defines for Windows SDK 6.0a/VS2008

Dallman, John john.dallman at siemens.com
Fri Aug 6 08:10:18 PDT 2010


Gregor [mailto:dgregor at apple.com] wrote;

> Yes. I'd be open to reviewing/committing patches leading us in this
> direction, e.g.,
> 
> 	-fmicrosoft=9.0
> 
> to try to emulate VC++ 9.0. 

Better to make it -fmicrosoft_version=15.0

This is because of history; there have been several separate MS 
C/C++ compilers, and at least one reset of the marketing version 
number, at "Visual C++ 1.0" when an existing compiler that had
several versions was bundled with a new IDE. The version number 
sequence for the actual compiler has progressed smoothly for 
about 20 years now, and is probably worth sticking with. 

Incidentally, there's an undocumented option, /Bv, on the MS 
compiler that produces a full and proper account of the version 
numbers of the compiler and its components. This is handy when 
trying to sort out details of differences between versions

http://www.geoffchappell.com/viewer.htm?doc=studies/msvc/cl/cl/options/b
$v.htm&tx=1&ts=0,78

best,

--
John Dallman





More information about the cfe-dev mailing list