Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-01-08 18:22:34


On Sat, 08 Jan 2005 13:10:19 +0100, Soeren.Meyer-Eppler wrote
> Hello everybody,
> I have some problems trying to build the date_time libraries.
>
> I'm using:
>
>...snip details...
>
> 'libboost_date_time-vc71-mt-p-1_32.lib' I'd be most grateful.

Hi Sören -

This problem is due to STLPort wchar_t support (this is a STLPort default
iostreams build). There are 2 ways to deal with this.

No wide string/stream/etc

Build date_time from boost_root with:

 bjam -a "-sTOOLS=vc-7_1-stlport" "-sSTLPORT_PATH=..."
      "-sBUILD=<define>BOOST_NO_STD_WSTRING"
      --stagedir=... --with-date_time stage

With wide string/stream/etc

Rebuild STLPort to use wchar_t by adding /Zc:wchar_t to the STLPort makefile.
Build date_time from boost_root with:

 bjam -a "-sTOOLS=vc-7_1-stlport" "-sSTLPORT_PATH=..."
      "-sBUILD=<native-wchar_t>on"
      --stagedir=... --with-date_time stage

NOTE: Replace the elipses with the proper paths for your system.

HTH,

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net