Search code examples
c++c++11visual-studio-2013backwards-compatibility

Compiling old C++ code on Visual Studio 2013


I'm trying to compile OpenBabel 2.3.2 on Visual Studio 2013. The compilation fails miserably, mostly due to the fact that OpenBabel was developed in 2009, and Visual Studio 2013 has some C++11 related breaking changes .

Is there a way to tell Visual Studio 2013 to compile the code in C+09 mode, or something similar? I'd much rather not install Visual Studio 2012 or 2010 and compile OpenBabel with that, if at all possible.


Solution

  • I think you can change the Platform Tool set in order to do this. Please find following links which contain extra details on it.

    Visual Studio 2013 msvcr120 to msvcr100 http://msdn.microsoft.com/en-us/library/ff770576.aspx