How to compile Boost 1.34 with stlport
By atanasyan on Apr 06, 2007
Upcoming Boost 1.34 still has not been released. But it is in a very good shape and compatible with Sun C++ without any annoying patches. If you do not want to get it by CVS you can take its CVS snapshot here. Unfortunately there is one, at least one :-) problem with this version. By default it uses libCstd.2.1.1. This leads to enormous number of errors. Are there any workaround? Sure!
- Download and unpack tarball. Let's suppose the created directory name is 'boost'.
- cd boost
- Create in this directory file 'user-config.jam' with following content (spaces are important):
import toolset : using ; using sun : : <path to your Sun C++ compier>/bin/CC : <cxxflags>-library=stlport4 <linkflags>-library=stlport4 ;
- Build 'bjam' utility as described here. And put it on your $PATH.
- Run bjam --v2 -sBOOST_BUILD_PATH=`pwd` --toolset=sun stage