Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 42827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:23:56+00:00 2026-05-10T15:23:56+00:00

Is there any way to know if I’m compiling under a specific Microsoft Visual

  • 0

Is there any way to know if I’m compiling under a specific Microsoft Visual Studio version?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:23:57+00:00Added an answer on May 10, 2026 at 3:23 pm

    _MSC_VER and possibly _MSC_FULL_VER is what you need. You can also examine visualc.hpp in any recent boost install for some usage examples.

    Some values for the more recent versions of the compiler are:

    MSVC++ 14.30 _MSC_VER == 1933 (Visual Studio 2022 version 17.3.4) MSVC++ 14.30 _MSC_VER == 1932 (Visual Studio 2022 version 17.2.2) MSVC++ 14.30 _MSC_VER == 1930 (Visual Studio 2022 version 17.0.2) MSVC++ 14.30 _MSC_VER == 1930 (Visual Studio 2022 version 17.0.1) MSVC++ 14.28 _MSC_VER == 1929 (Visual Studio 2019 version 16.11.2) MSVC++ 14.28 _MSC_VER == 1928 (Visual Studio 2019 version 16.9.2) MSVC++ 14.28 _MSC_VER == 1928 (Visual Studio 2019 version 16.8.2) MSVC++ 14.28 _MSC_VER == 1928 (Visual Studio 2019 version 16.8.1) MSVC++ 14.27 _MSC_VER == 1927 (Visual Studio 2019 version 16.7) MSVC++ 14.26 _MSC_VER == 1926 (Visual Studio 2019 version 16.6.2) MSVC++ 14.25 _MSC_VER == 1925 (Visual Studio 2019 version 16.5.1) MSVC++ 14.24 _MSC_VER == 1924 (Visual Studio 2019 version 16.4) MSVC++ 14.23 _MSC_VER == 1923 (Visual Studio 2019 version 16.3) MSVC++ 14.22 _MSC_VER == 1922 (Visual Studio 2019 version 16.2) MSVC++ 14.21 _MSC_VER == 1921 (Visual Studio 2019 version 16.1) MSVC++ 14.2  _MSC_VER == 1920 (Visual Studio 2019 version 16.0) MSVC++ 14.16 _MSC_VER == 1916 (Visual Studio 2017 version 15.9) MSVC++ 14.15 _MSC_VER == 1915 (Visual Studio 2017 version 15.8) MSVC++ 14.14 _MSC_VER == 1914 (Visual Studio 2017 version 15.7) MSVC++ 14.13 _MSC_VER == 1913 (Visual Studio 2017 version 15.6) MSVC++ 14.12 _MSC_VER == 1912 (Visual Studio 2017 version 15.5) MSVC++ 14.11 _MSC_VER == 1911 (Visual Studio 2017 version 15.3) MSVC++ 14.1  _MSC_VER == 1910 (Visual Studio 2017 version 15.0) MSVC++ 14.0  _MSC_VER == 1900 (Visual Studio 2015 version 14.0) MSVC++ 12.0  _MSC_VER == 1800 (Visual Studio 2013 version 12.0) MSVC++ 11.0  _MSC_VER == 1700 (Visual Studio 2012 version 11.0) MSVC++ 10.0  _MSC_VER == 1600 (Visual Studio 2010 version 10.0) MSVC++ 9.0   _MSC_FULL_VER == 150030729 (Visual Studio 2008, SP1) MSVC++ 9.0   _MSC_VER == 1500 (Visual Studio 2008 version 9.0) MSVC++ 8.0   _MSC_VER == 1400 (Visual Studio 2005 version 8.0) MSVC++ 7.1   _MSC_VER == 1310 (Visual Studio .NET 2003 version 7.1) MSVC++ 7.0   _MSC_VER == 1300 (Visual Studio .NET 2002 version 7.0) MSVC++ 6.0   _MSC_VER == 1200 (Visual Studio 6.0 version 6.0) MSVC++ 5.0   _MSC_VER == 1100 (Visual Studio 97 version 5.0) 

    The version number above of course refers to the major version of your Visual studio you see in the about box, not to the year in the name. A thorough list can be found here. Starting recently, Visual Studio will start updating its ranges monotonically, meaning you should check ranges, rather than exact compiler values.

    cl.exe /? will give a hint of the used version, e.g.:

    c:\program files (x86)\microsoft visual studio 11.0\vc\bin>cl /? Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86 ..... 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer One can only speculate what your real intent is here,… May 11, 2026 at 9:13 pm
  • Editorial Team
    Editorial Team added an answer In eclipse, you can have two console views... On the… May 11, 2026 at 9:13 pm
  • Editorial Team
    Editorial Team added an answer I think you just need two methods: protected void Invoke(Action… May 11, 2026 at 9:13 pm

Related Questions

Is there any way to know if I'm compiling under a specific Microsoft Visual
Is there any way to determine a removable drive speed in Windows without actually
I am wanting to know if there is any way to have multiple footer
Is there any way to take a Class and determine if it represents a
I am using a wxGenericDirCtrl, and I would like to know if there is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.