C++11 support / Visual C++ 2013 CTP

dane's Avatar


20 May, 2014 05:34 PM

I am interested in using Appveyor to build C++ code that depends on C++11 features. So far I've been testing https://ci.appveyor.com/project/springmeyer/variant and have noticed compiler errors that indicate lacking support for the constexpr keyword. This is a known issue with the 2013 compiler addressed in this update: http://blogs.msdn.com/b/vcblog/archive/2013/11/18/announcing-the-vi...

Would it be possible to provide that version on appveyor instances?

  1. Support Staff 1 Posted by Feodor Fitsner on 20 May, 2014 05:44 PM

    Feodor Fitsner's Avatar

    Hi Dane,

    Can that CTP be installed side-by-side with VC++ 2013. I mean does it override C++ compiler that is part of VS 2013 installation?

  2. 2 Posted by dane on 20 May, 2014 07:28 PM

    dane's Avatar

    I'm not sure - I've not yet started running this version locally (part of why I'm interested in using Appveyor).

  3. Support Staff 3 Posted by Feodor Fitsner on 20 May, 2014 07:35 PM

    Feodor Fitsner's Avatar

    Well, I feel it is something affecting all clients, so we'd like to be sure it's going to be OK before backing it into build working images :)

  4. 4 Posted by Wilhelm Berg on 21 May, 2014 07:48 AM

    Wilhelm Berg's Avatar

    Hi Feodor and Dane,

    @Feodor No it wouldn't override the default compiler, it would be an additional compiler:
    See "Instructions" at the official Download:

    @Dane Probably we could include the download and install of the CTP into the build processs.
    Maybe via Web Platform Installer or manually.
    It's only 33MB.
    Although I'm not sure, if gyp is able to create a solution file that is compatible with the instructions mentioned above.


  5. Support Staff 5 Posted by Feodor Fitsner on 21 May, 2014 04:43 PM

    Feodor Fitsner's Avatar

    Hi Willy,

    Thanks for your notes! This is good the update could be installed side-by-side.

    - Feodor

  6. 6 Posted by dane on 22 May, 2014 08:58 PM

    dane's Avatar

    Thanks Willy. You are exactly right. Locally on Windows 7 I confirmed that the install is totally separate. And then I also confirmed that my code compiles with it, just as I hoped.

    Feodor: would it be possible to include this extra compiler toolchain by default soon? I've got a number of projects that will be moving to c++11 so this would be really nice to have.

    Btw, it is easy to ask msbuild to use this alternative compiler simply by setting a custom Platform Toolset in the project file.

  7. Support Staff 7 Posted by Feodor Fitsner on 22 May, 2014 11:37 PM

    Feodor Fitsner's Avatar

    Not sure about making it a default choice, but we can install this update to build machines, so you can tweak your project file to use it.

  8. 8 Posted by dane on 22 May, 2014 11:41 PM

    dane's Avatar

    Exactly: I don't think it should be default. As long as it is installed users that need this toolchain can simply tweak their project file. For reference: I'm using GYP to generate visual studio projects and the only tweak I needed was this line: https://github.com/mapbox/variant/blob/20f26eceebef717a0ee759b42bfe...

  9. Support Staff 9 Posted by Feodor Fitsner on 23 May, 2014 06:13 AM

    Feodor Fitsner's Avatar

    C++ 11 update has been deployed to build workers.

  10. 10 Posted by dane on 24 May, 2014 01:23 AM

    dane's Avatar

    Brilliant, works like a charm! Thank you.

  11. Support Staff 11 Posted by Feodor Fitsner on 24 May, 2014 01:29 AM

    Feodor Fitsner's Avatar

    Cool, thanks for the update!

  12. 12 Posted by dane on 13 Jun, 2014 12:49 AM

    dane's Avatar

    Visual studio 2014 preview with more C++11 features is now available: http://www.visualstudio.com/en-us/downloads/visual-studio-14-ctp-vs.... I'm still doing okay with the 2013 CTP update at this point, but I could see needing this in the future. For now I will close this issue however.

  13. dane closed this discussion on 13 Jun, 2014 12:49 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac