V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
forkon
V2EX  ›  iOS

boost.framework for ios 用起来的时候出现这样的问题,好头痛,求解

  •  
  •   forkon · 2015-05-25 20:29:50 +08:00 · 3414 次点击
    这是一个创建于 3469 天前的主题,其中的信息可能已经有所发展或是发生改变。

    ///////////////////
    出错类型:Apple Mach-O Linker Error

    ///////////////////
    boost.framework支持的架构
    /Users/ForDrink/Desktop/librime/thirdparty/boost.framework/boost (for architecture armv7): current ar archive random library

    /Users/ForDrink/Desktop/librime/thirdparty/boost.framework/boost (for architecture armv7s): current ar archive random library

    /Users/ForDrink/Desktop/librime/thirdparty/boost.framework/boost (for architecture i386): current ar archive random library

    /Users/ForDrink/Desktop/librime/thirdparty/boost.framework/boost (for architecture x86_64): current ar archive random library

    /Users/ForDrink/Desktop/librime/thirdparty/boost.framework/boost (for architecture arm64): current ar archive random library

    ///////////////////
    下面是出错时打印出来的信息(一部分)
    Undefined symbols for architecture arm64:

    "boost::cpp_regex_traits<char>::toi(char const&, char const, int) const", referenced from:

    boost::re_detail::basic_regex_formatter<boost::re_detail::string_out_iterator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, boost::match_results<std::__1::__wrap_iter<char const*>, std::__1::allocator<boost::sub_match<std::__1::__wrap_iter<char const*> > > >, boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::__1::__wrap_iter<char const*> >::format_escape() in librime.1.2.9.a(calculus.o)
    
      boost::re_detail::basic_regex_formatter<boost::re_detail::string_out_iterator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, boost::match_results<std::__1::__wrap_iter<char const*>, std::__1::allocator<boost::sub_match<std::__1::__wrap_iter<char const*> > > >, boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::__1::__wrap_iter<char const*> >::format_conditional() in librime.1.2.9.a(calculus.o)
    
      boost::re_detail::basic_regex_formatter<boost::re_detail::string_out_iterator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, boost::match_results<std::__1::__wrap_iter<char const*>, std::__1::allocator<boost::sub_match<std::__1::__wrap_iter<char const*> > > >, boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > >, std::__1::__wrap_iter<char const*> >::format_perl() in librime.1.2.9.a(calculus.o)
    

    "std::1::basic_istream<char, std::1::chartraits<char> >::sentry::sentry(std::1::basic_istream<char, std::_1::char_traits<char> >&, bool)", referenced from:

    std::__1::basic_istream<char, std::__1::char_traits<char> >& std::__1::getline<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_istream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char) in librime.1.2.9.a(dict_settings.o)
    

    "vtable for std::__1::ios_base::failure", referenced from:

    boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::__1::ios_base::failure> >::rethrow() const in librime.1.2.9.a(string_table.o)
    
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::__1::ios_base::failure> >::clone_impl(boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::__1::ios_base::failure> > const&, boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::__1::ios_base::failure> >::clone_tag) in librime.1.2.9.a(string_table.o)
    
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::__1::ios_base::failure> >::clone_impl(boost::exception_detail::error_info_injector<std::__1::ios_base::failure> const&) in librime.1.2.9.a(string_table.o)
    

    "std::1::cerr", referenced from:
    boost::assertion::detail::assertion_failed_msg(char const, char const, char const, char const, long) in librime.1.2.9.a(deployment_tasks.o)
    "std::
    1::basicostream<char, std::1::char_traits<char> >::operator<<(long)", referenced from:
    boost::assertion::detail::assertion_failed_msg(char const, char const, char const, char const, long) in librime.1.2.9.a(deployment_tasks.o)
    "std::
    1::basic_ostream<char, std::_1::char_traits<char> >::put(char)", referenced from:
    boost::assertion::detail::assertion_failed_msg(char const, char const, char const, char const, long) in librime.1.2.9.a(deployment_tasks.o)

    forkon
        1
    forkon  
    OP
       2015-05-25 23:56:20 +08:00
    std::__1这个到底是什么 为什么大部分出错的地方都有它
    forkon
        2
    forkon  
    OP
       2015-05-26 00:36:45 +08:00
    解决了!

    在link binary with libraries里加libstdc++.dylib
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2757 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:23 · PVG 21:23 · LAX 05:23 · JFK 08:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.