_ Msc_ver macro of Visual Studio

Source: Internet
Author: User

_ Msc_ver defines the version of the compiler. The following are the _ msc_ver values of some compiler versions (see references 2 in extended reading)

Ms vc ++ 10.0 _ msc_ver = 1600

Ms vc ++ 9.0 _ msc_ver = 1500

Ms vc ++ 8.0 _ msc_ver = 1400

Ms vc ++ 7.1 _ msc_ver = 1310

Ms vc ++ 7.0 _ msc_ver = 1300

Ms vc ++ 6.0 _ msc_ver = 1200

Ms vc ++ 5.0 _ msc_ver = 1100

Among them, Ms VC ++ 10.0 is Visual C ++ 2010, ms vc ++ 9.0 is Visual C ++ 2008, ms vc ++ 8.0 is Visual C ++ 2005.

You can infer the predefined _ msc_ver value of the current compiler by using the version information of the ms vc ++ compiler currently in use. The value of _ msc_ver is composed of the main version number and secondary version number of the ms vc ++ compiler, where the main version number is ". the first part of the split version number, and the second part of the split version number. For example, assume that the current visual
C ++ compiler version is 15.00.20706.01 (ms vc ++ 2008), the main version is "15", and the minor version is "00 ", therefore, the predefined _ msc_ver macro value of the current compiler is 1500.


Reference: 1. http://baike.baidu.com/view/1276757.htm

2. http://msdn.microsoft.com/en-us/library/b0084kay.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.