Hi

I am new to bjam build process.

We've an application that runs on multiple platforms with the same codebase.

Our team that maintains this application on Linux has already migrated this application to bjam. For this, a Jamroot with Linux specific rules, etc is already created.

There are no other jam files are created and the toolset to use is specified through "using gcc ; " rule in Jamroot.

Now, for adding Windows build to this Jamroot, I added "using msvc : 9 ;" to this same Jamroot, as below:
using gcc ;
using msvc : 9 : "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe";

When I tried to build the application using bjam (command line: bjam -q) on windows using this Jamroot, the bjam command failed as it could not find gcc on Windows:
C:/boostbuild/share/boost-build/tools\gcc.jam:130: in gcc.init from module gcc
error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from Jamroot:33
C:/boostbuild/share/boost-build/build\toolset.jam:39: in toolset.using from module toolset
C:/boostbuild/share/boost-build/build\project.jam:898: in using from module project-rules
Jamroot:33: in modules.load from module Jamfile</C:/Users/root-path-of-application-src/>
C:/boostbuild/share/boost-build/build\project.jam:317: in load-jamfile from module project
C:/boostbuild/share/boost-build/build\project.jam:62: in load from module project
C:/boostbuild/share/boost-build/build\project.jam:168: in project.find from module project
C:/boostbuild/share/boost-build\build-system.jam:570: in load from module build-system
C:\boostbuild\share\boost-build\kernel\modules.jam:283: in import from module modules
C:\boostbuild\share\boost-build\kernel\bootstrap.jam:142: in boost-build from module
C:\boostbuild\share\boost-build\boost-build.jam:8: in module scope from module

Can you please help me know, how can I specify the correct toolset on Windows for bjam?

Please help.

Thanks,
ganesh