Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

cant build boost_1_32_0 date_time

vbdevnet
2004-11-23
2013-05-14
  • vbdevnet
    vbdevnet
    2004-11-23

    Hi
    I need link boost_1_32_0 date_time to .NET 2003

    Dos promt command I use:

    D:\some_path\boost_1_32_0>bjam -sTOOLS="vc-7_1-stlport" -sBUILD="<stlport-iostream>on" -sSTLPORT_PATH="D:\\some_path" --with-date_time stage

    ...found 641 targets...
    ...updating 12 targets...
    vc-C++ bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1-stlport\debug\threading-multi\greg_month.obj
    greg_month.cpp
    D:\_Vlad_Job\boost_1_32_0\boost\lexical_cast.hpp(150) : error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'boost::date_time::date_names_put<Config,charT,OutputIterator>::string_type' (or there is no acceptable conversion)
            with
            [
                Config=boost::gregorian::greg_facet_config,
                charT=wchar_t,
                OutputIterator=_STL::ostreambuf_iterator<wchar_t,_STL::char_traits<wchar_t>>
            ]
            D:\_Vlad_Job\boost_1_32_0\boost\lexical_cast.hpp(189) : see reference to function template instantiation 'bool boost::detail::lexical_stream<Target,Source>::operator >><Target>(InputStreamable &)' being compiled
            with
            [
                Target=boost::date_time::date_names_put<boost::gregorian::greg_facet_config,wchar_t,_STL::ostreambuf_iterator<wchar_t,_STL::char_traits<wchar_t>>>::string_type,
                Source=const char *,
                InputStreamable=boost::date_time::date_names_put<boost::gregorian::greg_facet_config,wchar_t,_STL::ostreambuf_iterator<wchar_t,_STL::char_traits<wchar_t>>>::string_type
            ]
            D:\_Vlad_Job\boost_1_32_0\boost\date_time\date_names_put.hpp(126) : see reference to function template instantiation 'Target boost::lexical_cast<boost::date_time::date_names_put<Config,charT,OutputIterator>::string_type,const char*>(Source)' being compiled
            with
            [
    ....

    Is there any way to build it correct ?

     
    • vbdevnet
      vbdevnet
      2004-11-23

      Update on the issue:

      wchar_t resolved by using param:

      <native-wchar_t>on

      Current output:

      bjam -sTOOLS="vc-7_1-stlport" -sBUILD="<stlport-iostream>on <native-wchar_t>on" -sSTLPORT_PATH="C:\\_Vlad_Job" --with-date_time stage

      ...found 643 targets...
      ...updating 6 targets...
      vc-Link bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1-stlport\debug\ native-wchar_t-on\threading-multi\boost_date_time-vc71-mt-gdp-1_32.dll bin\boost
      \libs\date_time\build\boost_date_time.dll\vc-7_1-stlport\debug\native-wchar_t-on
      \threading-multi\boost_date_time-vc71-mt-gdp-1_32.lib
         Creating library bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1-st
      lport\debug\native-wchar_t-on\threading-multi\boost_date_time-vc71-mt-gdp-1_32.l
      ib and object bin\boost\libs\date_time\build\boost_date_time.dll\vc-7_1-stlport\ debug\native-wchar_t-on\threading-multi\boost_date_time-vc71-mt-gdp-1_32.exp
      greg_month.obj : error LNK2019: unresolved external symbol "__declspec(dllimport
      ) public: __thiscall _STL::basic_string<wchar_t,class _STL::char_traits<wchar_t>
      ,class _STL::allocator<wchar_t> >::~basic_string<wchar_t,class _STL::char_traits
      <wchar_t>,class _STL::allocator<wchar_t> >(void)" (__imp_??1?$basic_string@_WV?$
      char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@QAE@XZ) referenced in function "pr
      otected: virtual void __thiscall boost::date_time::date_names_put<struct boost::
      gregorian::greg_facet_config,wchar_t,class _STL::ostreambuf_iterator<wchar_t,cla
      ss _STL::char_traits<wchar_t> > >::do_year_sep_char(class _STL::ostreambuf_itera
      tor<wchar_t,class _STL::char_traits<wchar_t> > &)const " (?do_year_sep_char@?$da
      te_names_put@Ugreg_facet_config@gregorian@boost@@_WV?$ostreambuf_iterator@_WV?$c
      har_traits@_W@_STL@@@_STL@@@date_time@boost@@MBEXAAV?$ostreambuf_iterator@_WV?$c
      har_traits@_W@_STL@@@_STL@@@Z)
      greg_month.obj : error LNK2019: unresolved external symbol "__declspec(dllimport
      ) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<wchar_t,class _STL
      ::char_traits<wchar_t>,class _STL::allocator<wchar_t> >,struct _STL::_Nonconst_t
      raits<wchar_t> > __thiscall _STL::basic_string<wchar_t,class _STL::char_traits<w
      char_t>,class _STL::allocator<wchar_t> >::end(void)" (__imp_?end@?$basic_string@
      _WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@QAE?AU?$_DBG_iter@V?$_Nondebu
      g_string@_WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@U?$_Nonconst_traits@
      _W@2@@2@XZ) referenced in function "protected: void __thiscall boost::date_time:
      :date_names_put<struct boost::gregorian::greg_facet_config,wchar_t,class _STL::o
      streambuf_iterator<wchar_t,class _STL::char_traits<wchar_t> > >::put_string(clas
      s _STL::ostreambuf_iterator<wchar_t,class _STL::char_traits<wchar_t> > &,wchar_t
      const * const)const " (?put_string@?$date_names_put@Ugreg_facet_config@gregoria
      n@boost@@_WV?$ostreambuf_iterator@_WV?$char_traits@_W@_STL@@@_STL@@@date_time@bo
      ost@@IBEXAAV?$ostreambuf_iterator@_WV?$char_traits@_W@_STL@@@_STL@@QB_W@Z)
      greg_month.obj : error LNK2019: unresolved external symbol "__declspec(dllimport
      ) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<wchar_t,class _STL
      ::char_traits<wchar_t>,class _STL::allocator<wchar_t> >,struct _STL::_Nonconst_t
      raits<wchar_t> > __thiscall _STL::basic_string<wchar_t,class _STL::char_traits<w
      char_t>,class _STL::allocator<wchar_t> >::begin(void)" (__imp_?begin@?$basic_str
      ing@_WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@QAE?AU?$_DBG_iter@V?$_Non
      debug_string@_WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@U?$_Nonconst_tra
      its@_W@2@@2@XZ) referenced in function "protected: void __thiscall boost::date_t
      ime::date_names_put<struct boost::gregorian::greg_facet_config,wchar_t,class _ST
      L::ostreambuf_iterator<wchar_t,class _STL::char_traits<wchar_t> > >::put_string(
      class _STL::ostreambuf_iterator<wchar_t,class _STL::char_traits<wchar_t> > &,wch
      ar_t const * const)const " (?put_string@?$date_names_put@Ugreg_facet_config@greg
      orian@boost@@_WV?$ostreambuf_iterator@_WV?$char_traits@_W@_STL@@@_STL@@@date_tim
      e@boost@@IBEXAAV?$ostreambuf_iterator@_WV?$char_traits@_W@_STL@@@_STL@@QB_W@Z)
      greg_month.obj : error LNK2019: unresolved external symbol "__declspec(dllimport
      ) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<wchar_t,class _STL
      ::char_traits<wchar_t>,class _STL::allocator<wchar_t> >,struct _STL::_Const_trai
      ts<wchar_t> > __thiscall _STL::basic_string<wchar_t,class _STL::char_traits<wcha
      r_t>,class _STL::allocator<wchar_t> >::end(void)const " (__imp_?end@?$basic_stri
      ng@_WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@QBE?AU?$_DBG_iter@V?$_Nond