Alex Oren | 30 Sep 21:07

Boost, MSVC 8 and StlPort

Hello,

I installed Boost via the BoostPro 1.36.0 Installer and trying to use the Regex package.

Unfortunately, it does not want to link.

I am using MSVC 8 (Visual Studio 2005) with StlPort instead of the native libraries.
Boost tries to link libboost_regex-vc80-mt-gdp-1_36.lib which is not included in the distribution.

I have bjam but I don't know what parameters to use so I couldn't build the debug library.

Please help!

Thank you,
Alex.
Andrea Denzler | 30 Sep 21:28
Favicon
Gravatar

Re: Boost, MSVC 8 and StlPort

Hello Alex,

You need to download the boost soruce code and build the boost library with
stlport. Edit the tools\build\v2\user-config.jam file. add line

using stlport :  : mystlportpath/stlport mystlportpath/lib ;

And then compile it with

bjam --build-dir="C:\mytemppath\boost_tempd" --toolset=msvc
--build-type=complete --with-regex -sICU_PATH="C:\myicupath\icu\icu"
define=U_STATIC_IMPLEMENTATION=1 stage stdlib=stlport

Use the -sICU_PATH if you want Unicode support and the U_STATIC... if you
want static linked libraries.

About compiling you can build a batch file, something like this:

@echo off
Rem -----------------------------------------------------
Rem Set Visual Studio command line environment 
Rem -----------------------------------------------------
vsvars32
Rem -----------------------------------------------------
Rem Invoke boost build
Rem -----------------------------------------------------
bjam --build-dir="C:\boost_temp" --toolset=msvc ....
Rem -----------------------------------------------------

Byee
(Continue reading)

Alex Oren | 30 Sep 21:55

Re: Boost, MSVC 8 and StlPort

Andrea Denzler wrote:
> Hello Alex,
> 
> You need to download the boost soruce code and build the boost library with
> stlport. Edit the tools\build\v2\user-config.jam file. add line
> 
> using stlport :  : mystlportpath/stlport mystlportpath/lib ;
> 
> And then compile it with
> 
> bjam --build-dir="C:\mytemppath\boost_tempd" --toolset=msvc
> --build-type=complete --with-regex -sICU_PATH="C:\myicupath\icu\icu"
> define=U_STATIC_IMPLEMENTATION=1 stage stdlib=stlport
> 
> Use the -sICU_PATH if you want Unicode support and the U_STATIC... if you
> want static linked libraries.

Thank you Andrea, it built the libs.
Now to see if the examples work...

Gmane