I try to build program from command line with CL.
Run next command:
CL -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" C:\dev\projects\console-interaction-tester\main.cpp
And I caught error:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\crtdefs.h(10): fatal error C1083: ...... corecrt.h: No such file or directory
I tried all flags from VS ouptup, like /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes but it doesn't work.
I need sample of command, what can ignore UniversalCRT, or instruction how fix path. I wanted to add includes dir with corecrt.h but classic location C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\includes doesn't exists!
Install Windows SDK.
Run the VS2017 installer again, and select it (or plainly select the full C++ dev package).
Related
I try to build SRT with CMake on Windows 10 using VS2019 as generator.
Thru the Configure step, I have:
The C compiler identification is MSVC 19.23.28106.4 The CXX compiler
identification is MSVC 19.23.28106.4 Check for working C compiler:
C:/Program Files (x86)/Microsoft Visual
Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe
-- broken CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60
(message): The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x86/cl.exe"
is not able to compile a simple test program. It fails with the
following output:
Change Dir: C:/Users/MLUser/Desktop/SRT/srt-1.4.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
cmTC_3ea98.vcxproj /p:Configuration=Debug /p:Platform=Win32
/p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version
16.3.1+1def00d3d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28106.4 for x86
testCCompiler.c
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I./MIDL /Zi /W3 /WX- /diagnostics:column /MP /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _LOCAL_NODE
/D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
/Zc:inline /Fo"cmTC_3ea98.dir\Debug\"
/Fd"cmTC_3ea98.dir\Debug\vc142.pdb" /Gd /TC /analyze-
/errorReport:queue
"C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\testCCompiler.c"
cmTC_3ea98.vcxproj -> C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_3ea98.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(1992,5):
warning MSB3073: The command
""C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_3ea98.exe"
/RegServer" exited with code 1.
[C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\cmTC_3ea98.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(1998,5):
error MSB8011: Failed to register output. Please try enabling Per-user
Redirection or register the component from a command prompt with
elevated permissions.
[C:\Users\MLUser\Desktop\SRT\srt-1.4.0\build\CMakeFiles\CMakeTmp\cmTC_3ea98.vcxproj]
CMake will not be able to correctly generate this project. Call
Stack (most recent call first): CMakeLists.txt:15 (project)
UPD
I tried to launch Cmake GUI both with admin and no admin rights.
OK, I see that I had custom properties in: C:\Users\[User]\AppData\Local\Microsoft\MSBuild\v4.0.
It *.props files where it was configured to register output.
I removed them, and passed "output redirection" issue.
I am pretty new to Visual Studio.. Couldn't find similar topic so starting the new one.
I'm developig an MFC app and I'd like to use mySQL database engine.
I believe I have followed instructions from the official site to install the C++ connector:
Building Connector/C++ Applications: General Considerations and
Building Connector/C++ Applications on Windows with Microsoft Visual Studio
i.e:
I downloaded c++ connector (together with mySQL database engine)
I chose to link dynamically against precompiled (by Oracle) c++ connector
which means I need : LIB/vs14/mysqlcppconn8.lib (import library), LIB/mysqlcppconn8-1-vs14.dll
I selected debug mode in my configuration (according to the official docs I can do it even though the library itself may be compiled in release mode)
I added Additional Include Directories (Compiler->General) - which in my case is: "C:\Program Files\MySQL\Connector C++ 8.0\include" - this is where mysqlx/xdevapi.h resides
I added Additional Library Directories (Linker->General) - which in my case is: "C:\Program Files\MySQL\Connector C++ 8.0\lib64"
I added Additional Dependencies (Linker->Input) which in my case is mysqlcppconn8.lib (static import lib for the dll)
I changed option for Runtime Library (C++ -> Code Generation) from MDd to MT (as suggested in the documentation)
I extended the PATH env variable by adding the directory where the actual dll library is located (in my case the location of the file is C:\Program Files\MySQL\Connector C++ 8.0\lib64\mysqlcppconn8-1-vs14.dll so the path is C:\Program Files\MySQL\Connector C++ 8.0\lib64)
In the wizard-generated MFC project I added #include and I get following error: fatal error C1083: Cannot open include file: 'mysqlx/xdevapi.h': No such file or directory
I'm wondering what is causing this since I have added Include search path in step 4.
The directory structure for the library is as follows:
C:\Program Files\MySQL\Connector C++ 8.0\include\mysqlx\xdevapi.h
C:\Program Files\MySQL\Connector C++ 8.0\lib64\mysqlcppconn8-1-vs14.dll
C:\Program Files\MySQL\Connector C++ 8.0\lib64\vs14\mysqlcppconn8.lib
The complier command:
/Yu"stdafx.h" /GS /analyze- /W3 /Zc:wchar_t /I"C:\Program
Files\MySQL\Connector C++ 8.0\include\mysqlx" /I"C:\Program
Files\MySQL\Connector C++ 8.0\include" /ZI /Gm /Od /sdl
/Fd"Debug\vc141.pdb" /Zc:inline /fp:precise /D "WIN32" /D "_WINDOWS" /D
"_DEBUG" /D "_UNICODE" /D "UNICODE" /D "_AFXDLL" /errorReport:prompt /WX-
/Zc:forScope /RTC1 /Gd /Oy- /MT /Fa"Debug\" /EHsc /nologo /Fo"Debug\"
/Fp"Debug\exam-questions.pch" /diagnostics:classic
The linker command:
/OUT:"C:\Users\Kamilek\source\repos\exam-questions\Debug\exam-
questions.exe" /MANIFEST /NXCOMPAT
/PDB:"C:\Users\Kamilek\source\repos\exam-questions\Debug\exam-
questions.pdb" /DYNAMICBASE "mysqlcppconn8.lib" /DEBUG:FASTLINK
/MACHINE:X86 /INCREMENTAL /PGD:"C:\Users\Kamilek\source\repos\exam-
questions\Debug\exam-questions.pgd" /SUBSYSTEM:WINDOWS
/MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/ManifestFile:"Debug\exam-questions.exe.intermediate.manifest"
/ERRORREPORT:PROMPT /NOLOGO /LIBPATH:"C:\Program Files\MySQL\Connector
C++ 8.0\lib64\" /TLBID:1
I am trying to compile GLFM using emscripten and cmake. I followed the instructions on the GitHub page to do so, and the cmake command to generate all of the project files works without a hitch (other than some deprecation warnings), but when I enter the line cmake --build . I get errors.
Here is the entire output:
E:\emproj\glfm\build\emscripten>cmake --build .
Microsoft (R) Build Engine version 15.6.85.37198 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/27/2018 3:21:04 PM.
Project "E:\emproj\glfm\build\emscripten\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "E:\emproj\glfm\build\emscripten\ALL_BUILD.vcxproj" (1) is building "E:\emproj\glfm\build\emscripten\ZERO_CHECK
.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
All outputs are up-to-date.
FinalizeBuildStatus:
Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "E:\emproj\glfm\build\emscripten\ZERO_CHECK.vcxproj" (default targets).
Project "E:\emproj\glfm\build\emscripten\ALL_BUILD.vcxproj" (1) is building "E:\emproj\glfm\build\emscripten\glfm.vcxpr
oj" (3) on node 1 (default targets).
InitializeBuildStatus:
Touching "glfm.dir\Debug\glfm.tlog\unsuccessfulbuild".
CustomBuild:
All outputs are up-to-date.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\CL.exe /c /IE
:\emproj\glfm\include /IE:\emproj\glfm\src /nologo /W1 /WX- /diagnostics:classic /O2 /Oy- /D "CMAKE_INTDIR=\"Debug\""
/D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"glfm.dir\Debug\\" /Fd"glfm.dir\Debug\glfm.
pdb" /Gd /TC /analyze- /FC /errorReport:queue -g -Weverything -Wwrite-strings -Wno-padded -Wno-covered-switch-defaul
t E:\emproj\glfm\src\glfm_platform_emscripten.c
cl : Command line error D8021: invalid numeric argument '/Weverything' [E:\emproj\glfm\build\emscripten\glfm.vcxproj]
Done Building Project "E:\emproj\glfm\build\emscripten\glfm.vcxproj" (default targets) -- FAILED.
Done Building Project "E:\emproj\glfm\build\emscripten\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Build FAILED.
"E:\emproj\glfm\build\emscripten\ALL_BUILD.vcxproj" (default target) (1) ->
"E:\emproj\glfm\build\emscripten\glfm.vcxproj" (default target) (3) ->
(ClCompile target) ->
cl : Command line error D8021: invalid numeric argument '/Weverything' [E:\emproj\glfm\build\emscripten\glfm.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.68
Its complaint is with the argument /Weverything. I looked in the project's CMakeLists.txt file and it looks like this command is only supposed to be used if the active compiler is clang. Could this be the issue? It is using visual studio as a host, should it be doing that?
It says that emscripten 1.35.0 is required and that's the exact version I'm using.
I also followed the instructions to get it running in Android Studio and it worked without a hitch.
Thanks in advance for help!
The solution to this problem is as follows:
Don't use windows.
I used Ubuntu and everything went excellently aside from installing a modern version cmake. After searching for a while the method for doing that which worked for me can be found here: https://peshmerge.io/how-to-install-cmake-3-11-0-on-ubuntu-16-04/
While I am trying to run a simulink model the following error is encountered in relation with compilation and linking of C/C++ code
C:\Comms\slprj\_sfprj\quantizer_sim\_self\sfun\src>call "mexopts.bat"
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling "quantizer_sim_sfun.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2012b\extern\include" /I "C:\Program Files\MATLAB\R2012b\simulink\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\debugger\include" "quantizer_sim_sfun.c"
quantizer_sim_sfun.c
### Compiling "quantizer_sim_sfun_registry.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2012b\extern\include" /I "C:\Program Files\MATLAB\R2012b\simulink\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\debugger\include" "quantizer_sim_sfun_registry.c"
quantizer_sim_sfun_registry.c
### Compiling "c1_quantizer_sim.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2012b\extern\include" /I "C:\Program Files\MATLAB\R2012b\simulink\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\debugger\include" "c1_quantizer_sim.c"
c1_quantizer_sim.c
### Compiling "c2_quantizer_sim.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2012b\extern\include" /I "C:\Program Files\MATLAB\R2012b\simulink\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2012b\stateflow\c\debugger\include" "c2_quantizer_sim.c"
c2_quantizer_sim.c
### Linking ...
link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:quantizer_sim_sfun.mexw64 /map:"quantizer_sim_sfun.map" "C:\Program Files\MATLAB\R2012b\stateflow\c\mex\lib\win64\sfc_mex.lib" "C:\Program Files\MATLAB\R2012b\stateflow\c\debugger\lib\win64\sfc_debug.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libmx.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libmex.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libmat.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libfixedpoint.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libut.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libmwmathutil.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libemlrt.lib" "C:\Program Files\MATLAB\R2012b\lib\win64\libippmwipt.lib" "C:\Program Files\MATLAB\R2012b\extern\lib\win64\microsoft\libmwblascompat32.lib" #quantizer_sim_sfun.mol
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe"' : return code '0x450'
Stop.
Error using quantizer_script (line 24)
Error using targetman>throw_make_error (line 588)
(SLSF Diagnostic)
Currently Matlab is configured with Visual Studio 2010 Compiler. In Addition I checked that the LIBPATH is correctly set from Matlab. I am also running Matlab with administator's permissions.
How can the LINK and NMAKE errors be solved?
Visual Studio Express editions are no longer supported.
When you run mex -setup choose the SDK 7.1 (download here, select x64 compilers during installation).
Also be sure you install the .NET Framework 4.0 runtime.
Big however: With the SDK, there is a bug, where compilers get removed (details from MS)! Check it out here too. The patch is on Microsoft's website.
See this support article for tips on how to download and configure the SDK for MATLAB. Maybe confirm that the compilers were selected in the installation.
Building Boost 1.50 with bjam on MSVC 2010
I'm trying to build the latest Boost (1.50) using MSVC 2010. I have MSVC 2003 and 2008 installed on the same machine (Windows Vista), and have successfully been able to build Boost 1.50 using both toolsets. However I'm having trouble with msvc 2010.
The following is the bjam command I use after having called bootstap.bat:
bjam --without-mpi --without-python --toolset=msvc-7.1 --build-type=complete -d+2
bjam --without-mpi --without-python --toolset=msvc-9.0 --build-type=complete -d+2
bjam --without-mpi --without-python --toolset=msvc-10.0 --build-type=complete -d+2
When building MSVC 2010, I get the following error messages:
file bin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static\clone_current_exception_non_intrusive.obj.rsp
"libs\exception\src\clone_current_exception_non_intrusive.cpp" -Fo"bin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static\clone_current_exception_non_intrusi
ve.obj" -TP /O2 /Ob2 /W3 /GR /Zc:forScope /Zc:wchar_t /MT /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
-DNDEBUG
"-I."
compile-c-c++ bin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static\clone_current_exception_non_intrusive.obj
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo #"bin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static\clone_current_exception_non_intrusive.obj.rsp"
Command line error D2016 : '/Ze' and '/Za' command-line options are incompatible
...skipped <pbin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static>libboost_exception-vc100-s-1_50.lib for lack of <pbin.v2\libs\exception\build\msvc-10.0\r
elease\link-static\runtime-link-static>clone_current_exception_non_intrusive.obj...
...skipped <pstage\lib>libboost_exception-vc100-s-1_50.lib for lack of <pbin.v2\libs\exception\build\msvc-10.0\release\link-static\runtime-link-static>libboost_exception-vc100-s-1_
50.lib...
file bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\codecvt_error_category.obj.rsp
"libs\filesystem\src\codecvt_error_category.cpp" -Fo"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\codecvt_error_category.obj" -TP /O2 /Ob2 /W3
/GR /Zc:forScope /Zc:wchar_t /MT /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_FILESYSTEM_STATIC_LINK=1
-DBOOST_SYSTEM_STATIC_LINK=1
-DNDEBUG
"-I."
compile-c-c++ bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\codecvt_error_category.obj
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo #"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\codecvt_error_category.obj.rsp"
Command line error D2016 : '/Ze' and '/Za' command-line options are incompatible
file bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\operations.obj.rsp
"libs\filesystem\src\operations.cpp" -Fo"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\operations.obj" -TP /O2 /Ob2 /W3 /GR /Zc:forScope /Zc:wch
ar_t /MT /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_FILESYSTEM_STATIC_LINK=1
-DBOOST_SYSTEM_STATIC_LINK=1
-DNDEBUG
"-I."
compile-c-c++ bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\operations.obj
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo #"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\operations.obj.rsp"
Command line error D2016 : '/Ze' and '/Za' command-line options are incompatible
file bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\path.obj.rsp
"libs\filesystem\src\path.cpp" -Fo"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\path.obj" -TP /O2 /Ob2 /W3 /GR /Zc:forScope /Zc:wchar_t /MT /wd
4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_FILESYSTEM_STATIC_LINK=1
-DBOOST_SYSTEM_STATIC_LINK=1
-DNDEBUG
"-I."
compile-c-c++ bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\path.obj
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo #"bin.v2\libs\filesystem\build\msvc-10.0\release\link-static\runtime-link-static\path.obj.rsp"
Command line error D2016 : '/Ze' and '/Za' command-line options are incompatible
I have very little experience with bjam other than executing the command lines described above. I believe everything is setup correctly, all the compilers are on the PATH environment variable. eg:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
Furthermore I can't see where in the bjam configs for msvc that the '/Ze' and '/Za' are defined.
Is there something else I'm missing?
Instead of adding the compiler to the path, have you tried launching bjam from Visual Studio Command Prompt (found on your Start Menu)?
I never put anything on PATH - I just run that, go to boost folder, bootstrap and build.