QT compilation Error

Source: Internet
Author: User
QT compilation error-general Linux technology-Linux technology and application information. For more information, see. The QT of the embedded version has been installed successfully. The following error occurs when the test program hello world is compiled:
# Make
G ++-c-pipe-O2-Wall-W-D_REENTRANT-DQT_NO_DEBUG-DQT_GUI_LIB-DQT_CORE_LIB
-DQT_SHARED-I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/mkspecs/linux-g ++-I.-I
/Usr/local/Trolltech/QtEmbedded-4.5.1-arm/include/QtCore-I/usr/local/Trolltech/
QtEmbedded-4.5.1-arm/include/QtGui-I/usr/local/Trolltech/QtEmbedded-4.5.1-arm/I
Nclude-I.-o main. o main. cpp
G ++-Wl,-O1-o Trial main. o-L/usr/lib-lQtGui-L/usr/local/Trolltech/QtEmbed
Ded-4.5.1-arm/lib-lQtNetwork-lQtCore-lm-lrt-ldl-lpthread
/Usr/bin/ld: warning: libstdc ++. so.5, needed by/usr/lib/libQtGui. so, not found
(Try using-rpath or-rpath-link)
/Usr/lib/libQtGui. so: undefined reference to 'vtable for _ cxxabiv1 ::__ vmi_class
_ Type_info@GLIBCPP_3.2'
/Usr/lib/libQtGui. so: undefined reference to 'operator delete [] (void *) @ GLIBCPP_3
. 2'
/Usr/lib/libQtGui. so: undefined reference to 'operator delete (void *) @ GLIBCPP_3.2
'
/Usr/lib/libQtGui. so: undefined reference to 'vtable for _ cxxabiv1 ::__ si_class _
Type_info@GLIBCPP_3.2'
/Usr/lib/libQtGui. so: undefined reference to 'operator new [] (unsigned int) @ GLIBC
PP_3.2'
/Usr/lib/libQtCore. so: undefined reference to '_ builtin_exit'
/Usr/lib/libQtGui. so: undefined reference to '_ cxa_pure_virtual@CXXABI_1.2'
/Usr/lib/libQtGui. so: undefined reference to 'vtable for _ cxxabiv1 ::__ class_typ
E_info@GLIBCPP_3.2'
/Usr/lib/libQtGui. so: undefined reference to 'operator new (unsigned int) @ GLIBCPP
_ 000000'
Collect2: ld returned 1 exit status
Make: *** [Trial] Error 1

Hope you can help me. Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.