Right after it builds (with clang, can't build with g++ anymore for some unknown reason)
Undefined symbols for architecture x86_64:
"libtorrent::torrent_info::torrent_info(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced from:
_torrent_info_create in TorrentInfo.o
"libtorrent::to_hex(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
_info_hash in TorrentInfo.o
"libtorrent::session::pop_alerts(std::__1::deque<libtorrent::alert*, std::__1::allocator<libtorrent::alert*> >*)", referenced from:
_session_wait_for_alert in Session.o
"libtorrent::session::init(std::__1::pair<int, int>, char const*, libtorrent::fingerprint const&, unsigned int)", referenced from:
libtorrent::session::session(libtorrent::fingerprint const&, int, unsigned int) in Session.o
"std::runtime_error::what() const", referenced from:
boost::system::system_error::what() const in LibTorrent.o
vtable for NewJavaException in LibTorrent.o
vtable for ThrownJavaException in LibTorrent.o
vtable for NewJavaError in LibTorrent.o
boost::system::system_error::what() const in Session.o
vtable for NewJavaError in Session.o
vtable for NewJavaException in Session.o
...
"std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::ios_base::getloc() const", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::runtime_error::runtime_error(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
ThrownJavaException::ThrownJavaException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in LibTorrent.o
ThrownJavaException::ThrownJavaException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Session.o
ThrownJavaException::ThrownJavaException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in TorrentInfo.o
"std::runtime_error::~runtime_error()", referenced from:
boost::system::system_error::~system_error() in LibTorrent.o
ThrownJavaException::~ThrownJavaException() in LibTorrent.o
boost::system::system_error::~system_error() in Session.o
ThrownJavaException::~ThrownJavaException() in Session.o
boost::system::system_error::~system_error() in TorrentInfo.o
ThrownJavaException::~ThrownJavaException() in TorrentInfo.o
boost::system::system_error::~system_error() in create_torrent.o
...
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced from:
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in LibTorrent.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in Session.o
_torrent_info_create in TorrentInfo.o
libtorrent::sha1_hash::to_string() const in TorrentInfo.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in TorrentInfo.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)", referenced from:
std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) in create_torrent.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*)", referenced from:
boost::system::system_error::what() const in LibTorrent.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in LibTorrent.o
boost::system::system_error::what() const in Session.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in Session.o
boost::system::system_error::what() const in TorrentInfo.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in TorrentInfo.o
boost::system::system_error::what() const in create_torrent.o
...
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)", referenced from:
boost::system::system_error::what() const in LibTorrent.o
boost::system::system_error::what() const in Session.o
boost::system::system_error::what() const in TorrentInfo.o
boost::system::system_error::what() const in create_torrent.o
boost::system::system_error::what() const in jlibtorrent.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*)", referenced from:
boost::system::system_error::what() const in LibTorrent.o
boost::system::system_error::what() const in Session.o
boost::system::system_error::what() const in TorrentInfo.o
boost::system::system_error::what() const in create_torrent.o
boost::system::system_error::what() const in jlibtorrent.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned long, char const*)", referenced from:
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in LibTorrent.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in Session.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in TorrentInfo.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:
boost::system::system_error::what() const in LibTorrent.o
boost::system::system_error::~system_error() in LibTorrent.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in LibTorrent.o
boost::system::system_error::what() const in Session.o
boost::system::system_error::~system_error() in Session.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in Session.o
_torrent_info_create in TorrentInfo.o
...
"std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::~sentry()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::cout", referenced from:
_main in create_torrent.o
"std::__1::ctype<char>::id", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::locale::~locale()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::__1::ios_base::clear(unsigned int)", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in create_torrent.o
"std::terminate()", referenced from:
___clang_call_terminate in LibTorrent.o
___clang_call_terminate in Session.o
___clang_call_terminate in TorrentInfo.o
___clang_call_terminate in create_torrent.o
___clang_call_terminate in jlibtorrent.o
"typeinfo for std::__1::ios_base::failure", referenced from:
GCC_except_table31 in LibTorrent.o
GCC_except_table44 in Session.o
GCC_except_table42 in TorrentInfo.o
"typeinfo for std::runtime_error", referenced from:
typeinfo for boost::system::system_error in LibTorrent.o
typeinfo for ThrownJavaException in LibTorrent.o
typeinfo for ThrownJavaException in Session.o
typeinfo for boost::system::system_error in Session.o
typeinfo for boost::system::system_error in TorrentInfo.o
typeinfo for ThrownJavaException in TorrentInfo.o
typeinfo for boost::system::system_error in create_torrent.o
...
"typeinfo for std::bad_alloc", referenced from:
GCC_except_table31 in LibTorrent.o
GCC_except_table44 in Session.o
GCC_except_table42 in TorrentInfo.o
"typeinfo for std::exception", referenced from:
GCC_except_table31 in LibTorrent.o
GCC_except_table44 in Session.o
GCC_except_table42 in TorrentInfo.o
"vtable for __cxxabiv1::__si_class_type_info", referenced from:
typeinfo for boost::system::system_error in LibTorrent.o
typeinfo for ThrownJavaException in LibTorrent.o
typeinfo for NewJavaException in LibTorrent.o
typeinfo for NewJavaError in LibTorrent.o
typeinfo for ThrownJavaException in Session.o
typeinfo for NewJavaException in Session.o
typeinfo for NewJavaError in Session.o
...
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"operator delete(void*)", referenced from:
boost::system::system_error::~system_error() in LibTorrent.o
NewJavaException::~NewJavaException() in LibTorrent.o
ThrownJavaException::~ThrownJavaException() in LibTorrent.o
NewJavaError::~NewJavaError() in LibTorrent.o
_session_create in Session.o
_session_release in Session.o
_Java_com_frostwire_libtorrent_Session_waitForAlert in Session.o
...
"operator new[](unsigned long)", referenced from:
_session_wait_for_alert in Session.o
"operator new(unsigned long)", referenced from:
_session_create in Session.o
_torrent_info_create in TorrentInfo.o
"___cxa_allocate_exception", referenced from:
_Java_com_frostwire_libtorrent_Session_waitForAlert in Session.o
"___cxa_begin_catch", referenced from:
_Java_com_frostwire_libtorrent_LibTorrent_version in LibTorrent.o
boost::system::system_error::what() const in LibTorrent.o
translate_cpp_exception(JNIEnv_*) in LibTorrent.o
___clang_call_terminate in LibTorrent.o
_Java_com_frostwire_libtorrent_Session_create in Session.o
_Java_com_frostwire_libtorrent_Session_release in Session.o
_Java_com_frostwire_libtorrent_Session_startUPnP in Session.o
...
"___cxa_call_unexpected", referenced from:
boost::system::system_error::what() const in LibTorrent.o
boost::system::system_error::what() const in Session.o
boost::system::system_error::what() const in TorrentInfo.o
boost::system::system_error::what() const in create_torrent.o
boost::system::system_error::what() const in jlibtorrent.o
"___cxa_end_catch", referenced from:
_Java_com_frostwire_libtorrent_LibTorrent_version in LibTorrent.o
boost::system::system_error::what() const in LibTorrent.o
translate_cpp_exception(JNIEnv_*) in LibTorrent.o
_Java_com_frostwire_libtorrent_Session_create in Session.o
_Java_com_frostwire_libtorrent_Session_release in Session.o
_Java_com_frostwire_libtorrent_Session_startUPnP in Session.o
_Java_com_frostwire_libtorrent_Session_startNATPMP in Session.o
...
"___cxa_free_exception", referenced from:
_Java_com_frostwire_libtorrent_Session_waitForAlert in Session.o
"___cxa_rethrow", referenced from:
translate_cpp_exception(JNIEnv_*) in LibTorrent.o
translate_cpp_exception(JNIEnv_*) in Session.o
translate_cpp_exception(JNIEnv_*) in TorrentInfo.o
"___cxa_throw", referenced from:
_Java_com_frostwire_libtorrent_Session_waitForAlert in Session.o
"___gxx_personality_v0", referenced from:
_Java_com_frostwire_libtorrent_LibTorrent_version in LibTorrent.o
boost::system::system_error::what() const in LibTorrent.o
translate_cpp_exception(JNIEnv_*) in LibTorrent.o
boost::asio::detail::posix_tss_ptr<boost::asio::detail::call_stack<boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_thread_info>::context>::~posix_tss_ptr() in LibTorrent.o
boost::asio::detail::posix_tss_ptr<boost::asio::detail::call_stack<boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_thread_info>::context>::posix_tss_ptr() in LibTorrent.o
NewJavaException::NewJavaException(JNIEnv_*, char const*, char const*) in LibTorrent.o
Dwarf Exception Unwind Info (__eh_frame) in LibTorrent.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [jlibtorrent.dylib] Error 1