NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
JoeCrew
Joined: 14 May 2012 Posts: 3
|
Posted: Tue May 15, 2012 2:37 pm Post subject: More undefined references question |
|
|
I just sat up NetBeans 7.1.2 with QtSDK 4.8.1 and MinGW installed in C:\MinGW as specified. Here are my settings under Menu->Tools->Options->C\C++ settings
Base Directory: C:\MinGW\bin
C Compiler: C:\MinGW\bin\gcc.exe
C++ Compiler: C:\MinGW\bin\g++.exe
Fortran: blank
Assembler: C:\MinGW\bin\as.exe
Make Command: C:\msys\1.0\bin\make.exe
Debugger Command: C:\MinGW\bin\gdb.exe
QMake: C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin\qmake.exe
CMake: blank
I followed the tutorial and get the following errors. I've spent days trying to comb through the forums and on the Internet in general and cannot find a solution. Several undefined references and errors. I've tried several changes and I am now at a wall. Any assistance and suggestions would be seriously appreciated.
| Code: |
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/C/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/qmake.exe SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/QtCode/Examples/QtApplication_1'
/C/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
/usr/bin/make -f nbproject/qt-Debug.mk distclean
make[2]: Entering directory `/c/QtCode/Examples/QtApplication_1'
rm moc_HelloForm.cpp
rm ui_HelloForm.h
rm build/Debug/MinGW-Windows/HelloForm.o build/Debug/MinGW-Windows/main.o build/Debug/MinGW-Windows/moc_HelloForm.o
rm build/Debug/MinGW-Windows/QtApplication_1_resource_res.o
rm: cannot remove `dist/Debug/MinGW-Windows/QtApplication_1.exe': No such file or directory
make[2]: [distclean] Error 1 (ignored)
rm: cannot remove `qttmp-Debug.mk': No such file or directory
make[2]: [distclean] Error 1 (ignored)
rm dist/Debug/MinGW-Windows/QtApplication_1.exe
rm qttmp-Debug.mk
make[2]: Leaving directory `/c/QtCode/Examples/QtApplication_1'
make[1]: Leaving directory `/c/QtCode/Examples/QtApplication_1'
CLEAN SUCCESSFUL (total time: 2s)
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/C/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/qmake.exe SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/QtCode/Examples/QtApplication_1'
/C/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"/usr/bin/make" -f nbproject/qt-Debug.mk dist/Debug/MinGW-Windows/QtApplication_1.exe
make[2]: Entering directory `/c/QtCode/Examples/QtApplication_1'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/uic.exe HelloForm.ui -o ui_HelloForm.h
g++.exe -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/bin' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/lib' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-msvc2010' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'.' -I'.' -I'nbproject' -I'.' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-g++' -o build/Debug/MinGW-Windows/HelloForm.o HelloForm.cpp
g++.exe -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/bin' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/lib' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-msvc2010' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'.' -I'.' -I'nbproject' -I'.' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-g++' -o build/Debug/MinGW-Windows/main.o main.cpp
C:/QtSDK/Desktop/Qt/4.8.1/msvc2010/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/bin' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/lib' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-msvc2010' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'.' -I'.' -I'nbproject' -I'.' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-g++' -D__GNUC__ -DWIN32 HelloForm.h -o moc_HelloForm.cpp
g++.exe -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/bin' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/lib' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtGui' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/QtCore' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-msvc2010' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/include/ActiveQt' -I'.' -I'.' -I'nbproject' -I'.' -I'../../../QtSDK/Desktop/Qt/4.8.1/msvc2010/mkspecs/win32-g++' -o build/Debug/MinGW-Windows/moc_HelloForm.o moc_HelloForm.cpp
windres -i QtApplication_1_resource.rc -o build/Debug/MinGW-Windows/QtApplication_1_resource_res.o --include-dir=. -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
g++ -mthreads -Wl,-subsystem,windows -o dist/Debug/MinGW-Windows/QtApplication_1.exe build/Debug/MinGW-Windows/HelloForm.o build/Debug/MinGW-Windows/main.o build/Debug/MinGW-Windows/moc_HelloForm.o -L'c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib' -lmingw32 -lqtmaind build/Debug/MinGW-Windows/QtApplication_1_resource_res.o -lQtGuid4 -lQtCored4
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /FAILIFMISMATCH:"_MSC_VER=1600" /FAILIFMISMATCH:"_ITERATOR_DEBUG_LEVEL=2" /DEFAULTLIB:"msvcprtd" /DEFAULTLIB:"MSVCRTD" /DEFAULTLIB:"OLDNAMES" ' unrecognized
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x19): undefined reference to `__security_cookie'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x240): undefined reference to `_CxxThrowException@8'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text[?realloc@?$QVector@PAD@@AAEXHH@Z]+0x3b1): undefined reference to `_CxxThrowException@8'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0xd): undefined reference to `@__security_check_cookie@4'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.text$x+0x17): undefined reference to `__CxxFrameHandler3'
c:/QtSDK/Desktop/Qt/4.8.1/msvc2010/lib/qtmaind.lib(tmp/obj/debug_shared/qtmain_win.obj):(.data[??_R0?AVbad_alloc@std@@@8]+0x0): undefined reference to `??_7type_info@@6B@'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormC2Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:10: undefined reference to `_imp___ZN7QDialogC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormC1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:10: undefined reference to `_imp___ZN7QDialogC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD2Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:14: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:14: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD0Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:14: undefined reference to `_imp___ZN7QDialogD2Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZThn8_N9HelloFormD1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm7setupUiEP7QDialog[Ui_HelloForm::setupUi(QDialog*)]+0x46): undefined reference to `_imp___ZNK7QObject10objectNameEv'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm7setupUiEP7QDialog[Ui_HelloForm::setupUi(QDialog*)]+0x8c): undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm7setupUiEP7QDialog[Ui_HelloForm::setupUi(QDialog*)]+0xa3): undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormC2Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:10: undefined reference to `_imp___ZN6QLabelC1EP7QWidget6QFlagsIN2Qt10WindowTypeEE'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:12: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormC1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN5QFontC1Ev'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:11: undefined reference to `_imp___ZN5QFont9setFamilyERK7QString'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD2Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN5QFont12setPointSizeEi'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:14: undefined reference to `_imp___ZN7QWidget7setFontERK5QFont'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormD0Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:14: undefined reference to `_imp___ZN9QLineEditC1EP7QWidget'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QWidget7setFontERK5QFont'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN9QLineEditC1EP7QWidget'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QString8fromUtf8EPKci'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QObject13setObjectNameERK7QString'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QWidget11setGeometryERK5QRect'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN7QWidget7setFontERK5QFont'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN11QMetaObject18connectSlotsByNameEP7QObject'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN5QFontD1Ev'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:15: undefined reference to `_imp___ZN5QFontD1Ev'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZThn8_N9HelloFormD1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm13retranslateUiEP7QDialog[Ui_HelloForm::retranslateUi(QDialog*)]+0x5c): undefined reference to `_imp___ZN16QCoreApplication9translateEPKcS1_S1_NS_8EncodingE'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm13retranslateUiEP7QDialog[Ui_HelloForm::retranslateUi(QDialog*)]+0x7a): undefined reference to `_imp___ZN7QWidget14setWindowTitleERK7QString'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN12Ui_HelloForm13retranslateUiEP7QDialog[Ui_HelloForm::retranslateUi(QDialog*)]+0xf2): undefined reference to `_imp___ZN16QCoreApplication9translateEPKcS1_S1_NS_8EncodingE'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZN9HelloFormC2Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:10: undefined reference to `_imp___ZN6QLabel7setTextERK7QString'
build/Debug/MinGW-Windows/HelloForm.o: In function `ZThn8_N9HelloFormD1Ev':
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN7QWidget6resizeEii[QWidget::resize(int, int)]+0x2d): undefined reference to `_imp___ZN7QWidget6resizeERK5QSize'
C:/QtCode/Examples/QtApplication_1/HelloForm.cpp:(.text$_ZN7QStringD1Ev[QString::~QString()]+0x20): undefined reference to `_imp___ZN7QString4freeEPNS_4DataE'
build/Debug/MinGW-Windows/main.o: In function `Z5qMainiPPc':
C:/QtCode/Examples/QtApplication_1/main.cpp:15: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
C:/QtCode/Examples/QtApplication_1/main.cpp:21: undefined reference to `_imp___ZN12QApplication4execEv'
C:/QtCode/Examples/QtApplication_1/main.cpp:21: undefined reference to `QApplication::~QApplication()'
C:/QtCode/Examples/QtApplication_1/main.cpp:21: undefined reference to `QApplication::~QApplication()'
build/Debug/MinGW-Windows/moc_HelloForm.o: In function `ZN9HelloForm11qt_metacastEPKc':
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:71: undefined reference to `QDialog::qt_metacast(char const*)'
build/Debug/MinGW-Windows/moc_HelloForm.o: In function `ZN9HelloForm11qt_metacallEN11QMetaObject4CallEiPPv':
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:76: undefined reference to `QDialog::qt_metacall(QMetaObject::Call, int, void**)'
build/Debug/MinGW-Windows/moc_HelloForm.o: In function `Z41__static_initialization_and_destruction_0ii':
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:55: undefined reference to `_imp___ZN7QDialog16staticMetaObjectE'
build/Debug/MinGW-Windows/moc_HelloForm.o: In function `ZSt3minIjERKT_S2_S2_':
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.text$_ZNK14QScopedPointerI11QObjectData21QScopedPointerDeleterIS0_EEptEv[QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const]+0x26): undefined reference to `_imp___Z9qt_assertPKcS0_i'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x1c): undefined reference to `QWidget::event(QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x20): undefined reference to `QDialog::eventFilter(QObject*, QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x24): undefined reference to `QObject::timerEvent(QTimerEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x28): undefined reference to `QObject::childEvent(QChildEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x2c): undefined reference to `QObject::customEvent(QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x30): undefined reference to `QObject::connectNotify(char const*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x34): undefined reference to `QObject::disconnectNotify(char const*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x38): undefined reference to `QWidget::devType() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x3c): undefined reference to `QDialog::setVisible(bool)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x40): undefined reference to `QDialog::sizeHint() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x44): undefined reference to `QDialog::minimumSizeHint() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x48): undefined reference to `QWidget::heightForWidth(int) const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x4c): undefined reference to `QWidget::getDC() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x50): undefined reference to `QWidget::releaseDC(HDC__*) const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x54): undefined reference to `QWidget::paintEngine() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x58): undefined reference to `QWidget::mousePressEvent(QMouseEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x5c): undefined reference to `QWidget::mouseReleaseEvent(QMouseEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x60): undefined reference to `QWidget::mouseDoubleClickEvent(QMouseEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x64): undefined reference to `QWidget::mouseMoveEvent(QMouseEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x68): undefined reference to `QWidget::wheelEvent(QWheelEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x6c): undefined reference to `QDialog::keyPressEvent(QKeyEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x70): undefined reference to `QWidget::keyReleaseEvent(QKeyEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x74): undefined reference to `QWidget::focusInEvent(QFocusEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x78): undefined reference to `QWidget::focusOutEvent(QFocusEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x7c): undefined reference to `QWidget::enterEvent(QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x80): undefined reference to `QWidget::leaveEvent(QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x84): undefined reference to `QWidget::paintEvent(QPaintEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x88): undefined reference to `QWidget::moveEvent(QMoveEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x8c): undefined reference to `QDialog::resizeEvent(QResizeEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x90): undefined reference to `QDialog::closeEvent(QCloseEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x94): undefined reference to `QDialog::contextMenuEvent(QContextMenuEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x98): undefined reference to `QWidget::tabletEvent(QTabletEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0x9c): undefined reference to `QWidget::actionEvent(QActionEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa0): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa4): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xa8): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xac): undefined reference to `QWidget::dropEvent(QDropEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb0): undefined reference to `QDialog::showEvent(QShowEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb4): undefined reference to `QWidget::hideEvent(QHideEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xb8): undefined reference to `QWidget::winEvent(tagMSG*, long*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xbc): undefined reference to `QWidget::changeEvent(QEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc0): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc4): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xc8): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xcc): undefined reference to `QWidget::focusNextPrevChild(bool)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd0): undefined reference to `QWidget::styleChange(QStyle&)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd4): undefined reference to `QWidget::enabledChange(bool)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xd8): undefined reference to `QWidget::paletteChange(QPalette const&)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xdc): undefined reference to `QWidget::fontChange(QFont const&)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe0): undefined reference to `QWidget::windowActivationChange(bool)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe4): undefined reference to `QWidget::languageChange()'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xe8): undefined reference to `QDialog::done(int)'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xec): undefined reference to `QDialog::accept()'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:(.rdata$_ZTV9HelloForm[vtable for HelloForm]+0xf0): undefined reference to `QDialog::reject()'
build/Debug/MinGW-Windows/moc_HelloForm.o: In function `ZNK9HelloForm10metaObjectEv':
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:62: undefined reference to `non-virtual thunk to QWidget::devType() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:62: undefined reference to `non-virtual thunk to QWidget::paintEngine() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:63: undefined reference to `non-virtual thunk to QWidget::getDC() const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:63: undefined reference to `non-virtual thunk to QWidget::releaseDC(HDC__*) const'
C:/QtCode/Examples/QtApplication_1/moc_HelloForm.cpp:63: undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/QtApplication_1.exe] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/c/QtCode/Examples/QtApplication_1'
make[1]: Leaving directory `/c/QtCode/Examples/QtApplication_1'
BUILD FAILED (exit value 2, total time: 13s)
| [img][/img][img][/img] |
|
| Back to top |
|
 |
Alexander Simon Posted via mailing list.
|
Posted: Tue May 15, 2012 4:47 pm Post subject: More undefined references question |
|
|
Probably you should use
QMake: C:\QtSDK\Desktop\Qt\4.8.1\MinGW\bin\qmake.exe
Or use MSVC tool collection.
Alexander
On 05/15/12 18:37, JoeCrew wrote:
| Quote: | I just sat up NetBeans 7.1.2 with QtSDK 4.8.1 and MinGW installed in C:\MinGW as specified. Here are my settings under Menu->Tools->Options->C\C++ settings
Base Directory: C:\MinGW\bin
C Compiler: C:\MinGW\bin\gcc.exe
C++ Compiler: C:\MinGW\bin\g++.exe
Fortran: blank
Assembler: C:\MinGW\bin\as.exe
Make Command: C:\msys\1.0\bin\make.exe
Debugger Command: C:\MinGW\bin\gdb.exe
QMake: C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin\qmake.exe
CMake: blank
|
|
|
| Back to top |
|
 |
JoeCrew
Joined: 14 May 2012 Posts: 3
|
Posted: Wed May 16, 2012 8:01 pm Post subject: |
|
|
Thank you Alexander for your answer. While it wasn't the full answer, it did get me on the right path. I am going to layout the entire issue here and subsequent issues for future generations. Hope it helps someone.
Platform: Windows 7
IDE: Netbeans 7.1.2 and Qt4.8.1
I originally installed both of these programs following the the "Working with QT Applications" article. At the very beginning of the page it says " Configuring the NetBeans IDE for C/C++/Fortran", which I followed. The "Configuring the Netbeans..." article says to use the mingw compilers that come with QT, do not install the standalone MinGW compilers. And I followed those instructions. I wasn't aware of it at the time, and this was THE CORE issue, the DEFAULT installation for QT installed msvc2010 compilers. Now did it do this because I also have visual studio 2010 and 08 installed. Don't know. Anyway I had all kinds of compile issues using the msvc2010 compilers, so I installed MinGW (which again the original article says not to do), and I tried using them. But I also had to configure a qmake.exe file, so in the end my configuration (under MENU->TOOLS->OPTIONS->C\C++\Build Tools Tab looked like this:
Base Directory: C:\MinGW\bin
C Compiler: C:\MinGW\bin\gcc.exe
C++ Compiler: C:\MinGW\bin\g++.exe
QMake: C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin\qmake.exe
[ the other settings not important here]
Alexander mentioned changing my qmake.exe configuraiton to "QMake: C:\QtSDK\Desktop\Qt\4.8.1\MinGW\bin\qmake.exe ". Thing is I didn't even that that whole tool set installed on my machine.
My resolution:
1: Completely uninstall both Netbeans and QT.
2: Reinstall NetBeans - default settings
3: Reinstall QT - CUSTOM option. The only thing I changed was under DEVELOPMENT TOOLS->Desktop QT, I UNSELECTED Desktop Qt 4.8.1 msvc2010 which was selected by default, and selected Desktop Qt 4.8.1 mingw. There is also an option to install the standalone version of MinGW, DON'T DO IT.
4: Updated my SYSTEM $PATH$ variable to include: C:\QtSDK\mingw\bin;C:\msys\1.0\bin; (where the compilers and make files are located)
5: Started the follow the tutorial again, when I made the QT form "HelloForm", I got the error "Failed to start QT designer. Make sure it is installed and added to PATH.
6: Easy enough, I found designer.exe at in "C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\designer.exe, so I added C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin to my SYSTEM $PATH$ variable with the other 2 I originally added.
7: Shut down Netbeans and restart to get the new PATH
Finished creating the HelloForm, added the slots, compiled it and ran it the first time out of the gate without a single error.
I know this may be long, but hopefully these step by step instructions help someone.
Joberoni |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|