Boost logo

Boost Users :

From: Jasper, Alexander (alexander.jasper_at_[hidden])
Date: 2005-08-15 06:11:07


Hi!

I had the same problem a few weeks ago. You've got to use the following command line.

For debug libs
build\bjam.exe -sTOOLS=vc-7_1-stlport "-sBUILD=<define>BOOST_NO_STD_WSTRING" "-sSTLPORT_4.6.2_PATH=D:\Alexander...." "-sstlport-iostreams=on" --with-date_time stage

You need to build release libs with an extra step:

build\bjam.exe -sTOOLS=vc-7_1-stlport "-sBUILD=release <define>BOOST_NO_STD_WSTRING" "-sSTLPORT_4.6.2_PATH=D:\Alexander...." "-sstlport-iostreams=on" --with-date_time stage

This informations is based to 1.32, though. But I think it applies to 1.33 as well.

hope this helps

Alex

> -----Ursprüngliche Nachricht-----
> Von: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]]Im Auftrag von Hao Song
> Gesendet: Sonntag, 14. August 2005 17:33
> An: boost-users_at_[hidden]
> Betreff: [Boost-users] Problems: Building Boost with VC7 and STLport
> 4.6.2
>
>
> Hi,
> I tried to build Boost with VC7 and STLport 4.6.2, but failed to
> compile some source files of Boost.date_time. Error messages are like:
>
> vc-C++
> E:\CppLibs\boost_1_33_0\temp\bin\boost\libs\date_time\build\bo
> ost_date_time.dll\vc7-stlport\release\threading-multi\greg_month.obj
> greg_month.cpp
> E:\CppLibs\STLport-4.6.2\stlport\stl\_iterator_base.h(98)
> : error C2825:
> ¡°_Iterator::iterator_category¡±£ºcan not form a qualified name
>
> E:\CppLibs\boost_1_33_0\boost\date_time\date_parsing.hpp(270) : see
> reference to class template instantiation
> '_STL::iterator_traits<_Iterator>'
> being compiled
> with
> [
>
> _Iterator=_STL::basic_string<char,_STL::char_traits<char>,_STL
> ::allocator<char>>::iterator
> ]
>
> E:\CppLibs\boost_1_33_0\boost\date_time\gregorian\parsers.hpp(79) :
> see reference to function template instantiation
> 'boost::date_time::period<point_rep,duration_rep>
> boost::date_time::from_simple_string_type<boost::gregorian::da
> te,char>(const
> _STL::basic_string<_CharT,_Traits,_Alloc> &)' being compiled
> with
> [
> point_rep=boost::gregorian::date,
> duration_rep=boost::gregorian::date_duration,
> _CharT=char,
> _Traits=_STL::char_traits<char>,
> _Alloc=_STL::allocator<char>
> ]
> E:\CppLibs\STLport-4.6.2\stlport\stl\_iterator_base.h(98) :
> error C2039:
> 'iterator_category' : is not a member of 'operator "global
> namespace" '
>
> And bjam failed to build DLLs
>
> vc-Link
> E:\CppLibs\boost_1_33_0\temp\bin\boost\libs\date_time\build\bo
> ost_date_time.dll\vc7-stlport\debug\threading-multi\boost_date
> _time-vc7-mt-gdp-1_33.dll
> E:\CppLibs\boost_1_33_0\temp\bin\boost\libs\date_time\build\bo
> ost_date_time.dll\vc7-stlport\debug\threading-multi\boost_date
> _time-vc7-mt-gdp-1_33.lib
> LINK : fatal error LNK1181: cannot open input
> file¡°stlport_vc6_stldebug.lib¡±
>
>
>
> It seems that auto-linking doesn't function properly. but I
> can't see why.
> any idea about these? Thanks in advance!
>
>
>
>


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