_MSC_VER的意思就是:Microsoft的C/C++編譯器版本預(yù)定義宏。
百度百科
http://baike.baidu.com/link?url=HVcAjShyVzzDpvQ1sHEASxZWv-K-WUZL6jfalsTTtKxPWunMubs5TiEegihA4L123iRQlzmLZwUqjK4E5qgwcpdKGTlip6CQejT2jykD5e3
_MSC_VER是微軟公司推出的C/C++編譯器在ANSI/ISO C99標(biāo)準(zhǔn)之外擴(kuò)展的宏定義,用來定義當(dāng)前微軟公司自己的編譯器的主版本。需要注意的是,這并不是Visual Studio 的版本號,也不是Visual C++的版本號。如Visual Studio 2005的Vistual C++版本為8.0,所附帶編譯器的_MSC_VER定義是1400;目前最新的Visual Studio 2015的Visual C++版本為14.0,相應(yīng)_MSC_VER為1900。[1] 外文名_MSC_VER分 類定義編譯器的版本用 途編輯器屬 性軟件
vc++ command line
cl.exe version其中的“14.00.50727.762”就是版本號,對應(yīng)的的_MSC_VER的值就是1400(14.00.50727.762的四部分依次為:主版本號、次版本號、生成版本號和修訂號,其中還有兩個(gè)相關(guān)宏_MSC_FULL_VER:值為140050727,_MSC_BUILD:值為762)。https://msdn.microsoft.com/en-us/library/b0084kay.aspx
_MSC_VER Defined as an integer literal that encodes the major and minor number elements of the compiler's version number. The major number is the first element of the period-delimited version number and the minor number is the second element. For example, if the version number of the Visual C++ compiler is 17.00.51106.1, the_MSC_VER macro evaluates to 1700. Enter cl /? at the command line to view the compiler's version number. This macro is always defined.
新聞熱點(diǎn)
疑難解答
圖片精選