views:

181

answers:

2

I am trying to find out the version of Visual Study that is used to compile the python on my computer

It says

Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32

What I do not understand is that MSC V.1500. Does it mean it is compiled with 2005?

I cannot find this information on `python.org' neither. Any help is appreciated!

+5  A: 

MSC v.1500 appears to be Visual C++ 2008 according to this thread on the OpenCobol forums (of all places).

The MSDN page on Predefined Macros indicates 1500 to be the result of the _MSC_VER macro.

This other forum post mentions that

(For reference, Visual Studio 2003 has _MSC_VER = 1310; Visual Studio 2005 has _MSC_VER = 1400; Visual Studio 2008 has _MSC_VER = 1500.)

The above MSDN link said that 1600 indicates VS2010.

Strangely, I wasn't able to find that info about the earlier _MSC_VER values on MSDN.

Mark Rushakoff
Not the first day that M$ makes programmer life harder. This is why we are a better man now.
leon
+3  A: 
For this version of Visual C++  Use this compiler version
Visual C++ 4.x                  MSC_VER=1000
Visual C++ 5                    MSC_VER=1100
Visual C++ 6                    MSC_VER=1200
Visual C++ .NET                 MSC_VER=1300
Visual C++ .NET 2003            MSC_VER=1310
Visual C++ 2005                 MSC_VER=1400
Visual C++ 2008                 MSC_VER=1500
drorhan
such a crap way of indicating the version ! how to make things obscure, lesson 1! Thanks this though Drorhan, it's definitely a "nice to know"!
DavidM