C++11 compiler for windows

前端 未结 11 1458
我寻月下人不归
我寻月下人不归 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: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).

提交回复
热议问题