I need to compile several C++ projects using the version 6.0 compiler. Is there any way to compile my projects using the Visual C++ 2008 Express Edition compiler. In Java, there is a command to specify which version of the compiler to use on command line, I was hoping that c++ 2008 has such a command as well.
No. there is no such command in visual studio. If you want to compile with VC6 you'll need to install VC6.
Also, notice that the version of the compiler cl.exe
is usually different from the version of visual studio. For instance the compiler which comes with visual studio 2008 (which is version 9 if visual studio) is:
C:\Program Files\Microsoft Visual Studio 9.0\VC>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86