1

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.

zmbq
  • 38,013
  • 14
  • 101
  • 171
  • possible duplicate of [Disabling C++11 features on VS2012](http://stackoverflow.com/questions/17752246/disabling-c11-features-on-vs2012) – Rapptz Jul 01 '14 at 06:33
  • 1
    What compiler did it target at the time of development? – Niall Jul 01 '14 at 06:51
  • A lot of the issues listed on the MS site are conformance issues. If you do not have to use VS2013, an earlier VS version may offer more compatibility with the code base. – Niall Jul 01 '14 at 06:57
  • It's a cross-platform project, they probably targeted one GCC or another. It should compile on Visual Studio 2010 properly. – zmbq Jul 02 '14 at 06:33

1 Answers1

1

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

Community
  • 1
  • 1
  • 1
    ...assuming you have earlier versions installed. – crashmstr Jul 02 '14 at 12:39
  • This is what I ended up doing - installed Visual Studio 2010, changed the Platform Toolset in the Visual Studio 2013 project to 2010 and compiled. It worked. – zmbq Jul 08 '14 at 10:27