boostoniphone icon indicating copy to clipboard operation
boostoniphone copied to clipboard

Undefined symbols for architecture i386 - "boost::thread::start_thread_noexcept()"

Open dchappelle opened this issue 11 years ago • 2 comments

The following link error occurs when building a xcode project using the boost.framework (1.53) for the iPhone simulator? The line of code that causes the link error is just creating a boost::thread. The ios device build works fine.

Undefined symbols for architecture i386: "boost::thread::start_thread_noexcept()", referenced from: boost::thread::start_thread()

dchappelle avatar Jul 02 '13 20:07 dchappelle

check you build target's SDK version and make sure that matches the one used to built boost.framework (6.1 in my case). You might also want to turn off c++11 support as the built script by default does not built with c++11. In Xcode project setting, that should be

C++ Language Dialect C++ Standard Library

change both to "Compiler default"

see if this would help.

dennycd avatar Jul 02 '13 20:07 dennycd

It's because of wrong headers, see https://github.com/mz2/boostoniphone/issues/6

tpoechtrager avatar Jul 17 '13 14:07 tpoechtrager