Saturday, July 05, 2008

Set Environment Variables for VC

If we install more than 1 version of VC compilers, it's better to set environment variable to the version that we'd like to use for compiling programs under command mode (e.g. use nmake with makefile):

VC6:
$(VS_Path)\VC98\Bin\vcvars32.bat

VC7 (2003) / VC8 (2005) / VC9 (2008):
$(VS_Path)\Common7\Tools\vsvars32.bat