Search code examples
c++visual-studio-2015compatibilityfltkc++98

Run a project in Visual Studio 2015 in C++98 mode


I currently have a project which I programmed in Visual Studio 2015 with the most up to date compiler (i.e. the default). Unfortunately, I require my project to compile and execute in a C++98 environment - is there a way for me to do this in Visual Studio by somehow changing the compiler version so that I can check that my project still works?

Also, within this project I am using FLTK 1.3.3 (a GUI package) - will I be required to rebuild this library using C++98 mode if I can indeed do this in Visual Studio 2015?


Solution

  • Short answer is no. You cannot change the cl.exe that VS compiles with. You can set up a makeile project to use an older version of mingw or similar though:

    Can I force visual studio to use mingw compiler

    Here is some information about creating a makefile project.