How to enable C11 standard in VS 19???

empleat 126 Reputation points
2021-08-15T18:24:20.303+00:00

According to ms you should enable Windows SDK 10.0.20348.0 in VS installer. Problem is it is missing!
https://learn.microsoft.com/en-us/cpp/overview/install-c17-support?view=msvc-160

How do I enable C11 standard in Visual Studio 2019? It is not listed under C++ standards, I have there C14, C17 only.

I tried C11 code and it throwed error and I googled - it is because VS 19 doesn't fully support C11. And didn't find anything other which would be useful.

Please help!

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,540 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,826 Reputation points
    2021-08-15T18:33:21.163+00:00

    I have it in [C/C++] [Language] :

    123355-c11.jpg


  2. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
    2021-08-16T02:33:06.623+00:00

    Hi,

    According to the Doc: Install C11 and C17 support in Visual Studio

    Support for C11 and C17 standards is available starting in Visual Studio 2019 version 16.8. Support requires an updated Universal C Runtime (UCRT) and the latest Windows SDK updates, to work properly with the conforming preprocessor (/Zc:preprocessor).

    As far as I'm concerned, you could try to download the installer the latest Windows SDK. You could download the latest Windows 10 SDK from the Windows 10 SDK page. And then follow the steps to install the Windows 10 SDK.

    It is not listed under C++ standards, and it is listed under C language standard.

    123452-image.png

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.