Qt - QextSerialPort - errors cannot compile
-
upon compiling errors shows up that says undefined references
here is my *.pro file
(I ommitted the sources, headers and forms section)@include(C:\QtSDK\qextserialport-1.2rc\src\qextserialport.pri)
QT += core gui
QT += sqlDEFINES += NCREPORT_IMPORT
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
LIBS += -L "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/lib" -lncreport2
INCLUDEPATH += "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/include"TARGET = DBMS
TEMPLATE = appCONFIG += qt
QT += network xmlRESOURCES +=
resources.qrc@AND HERES WHATS IN MY COMPILE UOTPUT WINDOW
@09:11:36: Running build steps for project DBMS...
09:11:36: Configuration unchanged, skipping qmake step.
09:11:36: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directoryC:/Users/ACER/Desktop/ISKUL/STI/7' g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DNCREPORT_IMPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_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"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtNetwork" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtXml" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtSql" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include" -I"c:\Program Files\NCReport\2.11.0.MinGW.Qt5.1.1.eval\include" -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt" -I"release" -I"." -I"c:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++" -o release\facultylogin.o facultylogin.cpp g++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\DBMS.exe object_script.DBMS.Release -L"c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib" -lmingw32 -lqtmain -L "C:/Program Files/NCReport/2.11.0.MinGW.Qt5.1.1.eval/lib" -lncreport2 -lQtSql4 -lQtXml4 -lQtGui4 -lQtNetwork4 -lQtCore4 mingw32-make.exe[1]: Leaving directory
C:/Users/ACER/Desktop/ISKUL/STI/7'
./release\facultylogin.o:facultylogin.cpp:(.text+0x120): undefined reference toQextSerialPort::QextSerialPort(QString const&, QextSerialPort::QueryMode, QObject*)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x13e): undefined reference to
QextSerialPort::setBaudRate(BaudRateType)'
./release\facultylogin.o:facultylogin.cpp:(.text+0x153): undefined reference toQextSerialPort::setParity(ParityType)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x168): undefined reference to
QextSerialPort::setFlowControl(FlowType)'
./release\facultylogin.o:facultylogin.cpp:(.text+0x17d): undefined reference toQextSerialPort::setDataBits(DataBitsType)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x192): undefined reference to
QextSerialPort::setStopBits(StopBitsType)'
./release\facultylogin.o:facultylogin.cpp:(.text+0x410): undefined reference toQextSerialPort::QextSerialPort(QString const&, QextSerialPort::QueryMode, QObject*)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x42e): undefined reference to
QextSerialPort::setBaudRate(BaudRateType)'
./release\facultylogin.o:facultylogin.cpp:(.text+0x443): undefined reference toQextSerialPort::setParity(ParityType)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x458): undefined reference to
QextSerialPort::setFlowControl(FlowType)'
./release\facultylogin.o:facultylogin.cpp:(.text+0x46d): undefined reference toQextSerialPort::setDataBits(DataBitsType)' ./release\facultylogin.o:facultylogin.cpp:(.text+0x482): undefined reference to
QextSerialPort::setStopBits(StopBitsType)'
./release\settings.o:settings.cpp:(.text+0x391): undefined reference toQextSerialPort::setPortName(QString const&)' ./release\settings.o:settings.cpp:(.text+0x54d5): undefined reference to
QextSerialPort::setPortName(QString const&)'
./release\settings.o:settings.cpp:(.text+0x54ea): undefined reference toQextSerialPort::setQueryMode(QextSerialPort::QueryMode)' ./release\settings.o:settings.cpp:(.text+0x54ff): undefined reference to
QextSerialPort::setBaudRate(BaudRateType)'
./release\settings.o:settings.cpp:(.text+0x5514): undefined reference toQextSerialPort::setParity(ParityType)' ./release\settings.o:settings.cpp:(.text+0x5529): undefined reference to
QextSerialPort::setFlowControl(FlowType)'
./release\settings.o:settings.cpp:(.text+0x553e): undefined reference toQextSerialPort::setDataBits(DataBitsType)' ./release\settings.o:settings.cpp:(.text+0x5553): undefined reference to
QextSerialPort::setStopBits(StopBitsType)'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [release\DBMS.exe] Error 1
mingw32-make.exe: *** [release] Error 2
09:12:18: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project DBMS (target: Desktop)
When executing build step 'Make'@ -
Please don't post almost exactly the same threads multiple times
"duplicate":http://qt-project.org/forums/viewthread/35390/