C++11 compiler for windows

前端 未结 11 1437
我寻月下人不归
我寻月下人不归 2021-02-01 23:12

I was just watching a few videos on Channel9. I found things like lambdas really cool. when I tried to copy the example, it failed. auto didn\'t work either.

<
相关标签:
11条回答
  • 2021-02-01 23:25

    The Visual Studio 11 preview also supports lambdas.

    0 讨论(0)
  • 2021-02-01 23:31

    If you want to test most of the C++11 syntax using a Windows machine you have two options:

    1. Install Cygwin and compile from sources gcc-4.7 (latest snapshot) and clang++ with libstdc++. However it is not guaranteed that this will work.

    2. Safest bet: Install a modern Linux (such as Ubuntu if you are a Linux newbie) in a virtual machine (VirtualBox is a free virtual machine application) and in this virtual machine compile gcc-4.7 and clang++. I was able to successfully compile both of them on Ubuntu 11.10 following the instructions from this website.

    3. Best option, as of 2014, is to use Visual Studio 2013 updated with the latest CTP (this will work even for the Express edition).

    0 讨论(0)
  • 2021-02-01 23:37

    See here for an overview of the compilers and the supported C++11 features.

    0 讨论(0)
  • 2021-02-01 23:37

    Visual Studio 2017 has support in C++11, C++14, & C++17. + some of the Modern C++ "experimental" modules. If you decide on Visual Studio, you set the C++ standard at the project properties. C++11 is by default, but you can set it to C++14, C++17, or latest draft.

    0 讨论(0)
  • 2021-02-01 23:38

    For playing around and learning C++11 on Windows, I recommend MinGW Distro by Stephan T. Lavavej. The newest version contains GCC 4.8.2 and Boost 1.55.0.

    0 讨论(0)
提交回复
热议问题