Hello,

When building on OS X with the 10.4 SDK selected, only g++ version 4.0 can be used. This is the case when compiling on 10.4 or 10.5, since there "g++" is a symlink to "g++-4.0". But when compiling on 10.6, "g++" defaults to "g++-4.2", and so compiling with macosx-version=10.4 fails (standard C++ library headers for 4.2 are not present in the 10.4 SDK). One solution is for user to modify user-config.jam and explicitly specify gcc version, but that seems a bit inconvenient if the build system can make that decision itself (because in the described case it's not a matter of choice, but necessity).

My bjam language knowledge is very low, so I tried to make a "patch" which "shows what should be done", maybe someone (Volodya?) could modify it to make it actually work (and so that I can test it)?

Thanks,
Boris