Boost logo

Boost Users :

From: Peter Klotz (Peter.Klotz_at_[hidden])
Date: 2008-08-18 13:17:45


Boost.Regex 1.36.0 does not compile due to a compiler specific workaround in files libs\regex\src\usinstances.cpp and libs\regex\src\wc_regex_traits.cpp.

The attached patch fixes the problem but will (likely) break linking for others.

I use bjam 3.1.13 and obtain this error message:

...patience...
...found 1793 targets...
...updating 618 targets...
compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj
wc_regex_traits.cpp
libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C2375: 'std::allocator<_Ty>::allocator' : redefinition; different
linkage
        with
        [
            _Ty=unsigned short
        ]
        xmemory(120) : see declaration of 'std::allocator<_Ty>::allocator'
        with
        [
            _Ty=unsigned short
        ]
libs\regex\src\..\src\wc_regex_traits.cpp(53) : error C3190: 'std::allocator<_Ty>::allocator(void) throw()' with the pro
vided template arguments is not the explicit instantiation of any member function of 'std::allocator<_Ty>'
        with
        [
            _Ty=unsigned short
        ]

    cl /Zm800 -nologo @"bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj.rsp"

...failed compile-c-c++ bin.v2\libs\regex\build\msvc-8.0\release\threading-multi\wc_regex_traits.obj...
...failed updating 1 target...

My bjam command line:

bjam -q -sNO_COMPRESSION=1 --build-type=complete --without-graph --without-math --without-mpi --without-python --without-serialization --without-signals --without-wave --toolset=msvc-8.0

Regards, Peter.

Peter Klotz
Software Engineer

Phone: +43 (0) 50 8648-4100
Fax: +43 (0) 50 8648-4111
E-Mail: peter.klotz_at_[hidden]
----------------------------------------------------------------
ITH icoserve technology for healthcare GmbH
A-6020 Innsbruck, Innrain 98
www.ith-icoserve.com
Rechtsform: Gesellschaft mit beschränkter Haftung
Firmensitz: 6020 Innsbruck, Innrain 98
Firmenbuchnummer: FN 174117f
Firmenbuchgericht: Innsbruck
DVR: 0983039




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