Why are you compiling from the command line with VS (cl.exe) and not from within the VS IDE?