在Windows上本地启动Cross Compiler时,我的(Visual)GDB工具链出现问题。如果我直接在Linux机器上编译,则一切正常。我已经更新了sysroot,从那时起,在测试工具链时出现以下错误消息:
Tool arguments: -Wl,--start-group "C:\Users\joerg.lamprecht\AppData\Local\Temp\/VisualGDB_ToolchainTestProgram.o" -o "C:\Users\joerg.lamprecht\AppData\Local\Temp\/VisualGDB_ToolchainTestProgram" -Wl,-gc-sections -pthread -L=/usr/local/lib -L=/usr/lib/arm-linux-gnueabihf/ -L=/lib/arm-linux-gnueabihf/ -ldl -lxml2 -llua5.2 -lsqlite3 -lamqpcpp -Wl,--end-group
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libz.so.1, needed by c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so, not found (try using -rpath or -rpath-link)
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: liblzma.so.5, needed by c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so, not found (try using -rpath or -rpath-link)
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libm.so.6, needed by c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so, not found (try using -rpath or -rpath-link)
c:/sysgcc/raspberry/bin/../lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld.exe: warning: libstdc++.so.6, needed by c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so, not found (try using -rpath or -rpath-link)
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::append(char const*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_socket_open'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_allocate_exception@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `asin@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `inflateReset'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `lzma_code@XZ_5.0'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__aeabi_atexit@CXXABI_ARM_1.3.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::allocator<char>::~allocator()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_release_buffers'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `inflateEnd'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_basic_publish'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `log@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_throw@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzdirect@ZLIB_1.2.2.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::allocator<char>::allocator()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_ssl_socket_set_cacert'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_simple_rpc'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzclose'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `deflate'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::size() const@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_empty_table'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::operator=(char const*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `fmod@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::operator=(std::string const&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_ssl_socket_set_key'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_send_method'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `sin@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `inflateInit2_'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_new_connection'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_end_catch@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_rethrow@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_exchange_declare'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::compare(std::string const&) const@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `inflate'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `trunc@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::assign(char const*, unsigned int)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzwrite'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `crc32'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::c_str() const@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `tanh@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `ceil@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `deflateEnd'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::assign(std::string const&, unsigned int, unsigned int)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_get_rpc_reply'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzdopen'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `acos@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `tan@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_simple_wait_frame'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::cout@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_error_string2'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_call_unexpected@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::ios_base::Init::Init()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `floor@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `atan@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_end_cleanup@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::ios_base::Init::~Init()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_ssl_socket_set_verify_peer'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_ssl_socket_set_verify_hostname'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `sinh@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_free_exception@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `atan2@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `exp@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `cos@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::exception::~exception()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `sqrt@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `pow@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `typeinfo for std::exception@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::find(char, unsigned int) const@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `lzma_auto_decoder@XZ_5.0'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `lzma_end@XZ_5.0'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_cstring_bytes'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `log10@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `deflateInit2_'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_channel_close'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzopen64@ZLIB_1.2.3.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::string::compare(char const*) const@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//liblua5.2.so: undefined reference to `cosh@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::ostream::operator<<(int)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `__cxa_begin_catch@CXXABI_1.3'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `gzread'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::__throw_bad_alloc()@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_destroy_connection'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `__fpclassify@GLIBC_2.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_maybe_release_buffers'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_connection_close'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_ssl_socket_new'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf//libxml2.so: undefined reference to `lzma_properties_decode@XZ_5.0'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `vtable for std::exception@GLIBCXX_3.4'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_channel_open'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_tcp_socket_new'
c:\sysgcc\raspberry\bin\../arm-linux-gnueabihf/sysroot/usr/local/lib/libamqpcpp.so: undefined reference to `amqp_login'
collect2.exe: error: ld returned 1 exit status
我已经删除了Sysroot文件夹并完全重新同步了它,但是它不起作用。链接器找不到的库libz.so.1,liblzma.so.5和libm.so.6可在Sysroot文件夹中找到。
如果我忽略了它并仍然编译,则会收到以下错误消息:Ic
[Clang IntelliSense] Error: use of undeclared identifier '__PTHREAD_SPINS' Sonstige Dateien c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\ext\concurrence.h 122
[Clang IntelliSense] Error: use of undeclared identifier '__PTHREAD_SPINS' Sonstige Dateien c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\ext\concurrence.h 177
'__PTHREAD_SPINS' was not declared in this scope CyOS_Main c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\ext\concurrence.h 122
'__PTHREAD_SPINS' was not declared in this scope CyOS_Main c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\ext\concurrence.h 177
'__PTHREAD_SPINS' was not declared in this scope CyOS_Main c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\mutex 63
'__PTHREAD_SPINS' was not declared in this scope CyOS_Main c:\sysgcc\raspberry\arm-linux-gnueabihf\include\c++\4.9\mutex 92
我正在使用以下gcc版本:
gcc(Raspbian 4.9.2-10)4.9.2