我想端口的现有项目到iPhone这就需要Boost.Thread
库,项目编译没有错误,但也有链接错误:如何将boost线程库添加到iPhone项目中?
"boost::thread::start_thread()", referenced from:
boost::thread::thread<(anonymous namespace)::ReadThread::Function>((anonymous namespace)::ReadThread::Function, boost::disable_if<boost::is_convertible<(anonymous namespace)::ReadThread::Function&, boost::detail::thread_move_t<(anonymous namespace)::ReadThread::Function> >, boost::thread::dummy*>::type)in ChessEngine.o
我怎么能要求的线程库添加到Xcode项目?
p.s.升压库在:/usr/local/lib/libboost_thread-mt.a
EDIT(库中找到,但得到的架构错误):
继Linking to Boost.Signals using Xcode,在Other Linker Flags
将在Library Search Path
/usr/local/lib
和-lboost_thread-mt
后,该库中找到。不过,也有新的错误和警告:
ld: warning: in /usr/local/lib/libboost_thread-mt.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
怎样才可以有针对iOS(4.0或更高版本)的lib工作?谢谢!