I'm trying to transfer an existing project to an iPhone that needs the Boost.Thread library, the project compiles without errors, but there are link errors:
"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
How to add the necessary stream libraries to the Xcode project?
ps boost lib is located in: /usr/local/lib/libboost_thread-mt.a
EDIT (library found, but architecture error received):
After linking to Boost.Signals using Xcode , after adding /usr/local/lib to the Library Search Path and -lboost_thread-mt to Other Linker Flags , the library was found. However, new errors and warnings appear:
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)
How can I work with lib for iOS (4.0 or later)? Thanks!
source share