Compiling Boost libraries with Visual C++ 2010
I am doing some work where I want to integrate Python into my C++ application, and will be using boost::python to handle the embedding. This requires that I build the boost::python library (most of boost can be used without building the libraries.) Using bjam, I could just issue the following command to build the necessary files:
bjam --build-directory=build toolset=msvc --build-type=complete stage --with-python
However, I kept getting errors along the lines of
c:\Program was unexpected at this time.
Looking at the error message, it appears as though the problem is in navigating the directory c:\Program Files, where it is getting confused by the space. I did a little web searching, and came across this page which discussed a slightly different, yet very similar error. I checked my PATH variable, and sure enough, the entries added by the Direct X installation were enclosed in double quotes! I removed those, and I was able to build boost::python without any problems.
