godai0519 / BayesianNetwork

An implementation of Bayesian Networks Model for pure C++14 (11) later, including probability inference and structure learning method.
MIT License
39 stars 10 forks source link

About the Compiler software version #21

Open rocketfive opened 4 years ago

rocketfive commented 4 years ago

I use the visual studio 2013 in win10. However when I established a new project and try to compile it. The VS tolds me lots of grammar errors and such as Undeclared identifier and lack of ";" And I'm sure I have included all the external dependent library files correctly.

Therefore I suppose that it's a version problem , could you give a more specific compile guide?

godai0519 commented 4 years ago

This code uses C++11 which requires Visual C++ Compiler November 2013 CTP or later. Hence I think there are two solutions. Could you check them?

  1. install Visual C++ Compiler November 2013 CTP, and set "CTP_Nov2013" on the platform toolset in your project's property; or
  2. install and use Visual Studio 2015 or later.

The following webpage shows the way of setting up November 2013 CTP. https://devblogs.microsoft.com/cppblog/announcing-the-visual-c-compiler-november-2013-ctp/

rocketfive commented 4 years ago

This code uses C++11 which requires Visual C++ Compiler November 2013 CTP or later. Hence I think there are two solutions. Could you check them?

  1. install Visual C++ Compiler November 2013 CTP, and set "CTP_Nov2013" on the platform toolset in your project's property; or
  2. install and use Visual Studio 2015 or later.

The following webpage shows the way of setting up November 2013 CTP. https://devblogs.microsoft.com/cppblog/announcing-the-visual-c-compiler-november-2013-ctp/

I have tried to install the November 2013 CTP,however it still a lot of grammar errors, I'd try to use the vs 2015 . After all ,thanks a lot.