[Interest] undefined reference to xxx error

Pritam pritam_ghanghas at infosys.com
Wed Jan 18 10:10:34 CET 2012


have a look at the generated Makefile. I often turn to that when I dont 
find anything wrong with my .pro files.

On Wednesday 18 January 2012 02:24 PM, Vincent Cai wrote:
>
> Dear all,
>
>          My project report errors during link stage.
>
>          Issue Description, please also refer to attached pro file.
>
> #####################################################################
>
> #Error on this line
>
> #(1) if comment below line, error occurs
>
> #(2) if assign TARGET with AppGui, error occurs
>
> #(3) if assign TARGET with name not equal to AppGui, error disappear
>
> TARGET = AppGui
>
>          Error Info:
>
> ./debug\mainwindow.o: In function `MainWindow':
>
> E:\wcai_perforce\LTS_R3\CFT 
> members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: 
> undefined reference to `QSerialUI::QSerialUI(QWidget*)'
>
> E:\wcai_perforce\LTS_R3\CFT 
> members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: 
> undefined reference to `QSerialUI::Initialization()'
>
> E:\wcai_perforce\LTS_R3\CFT 
> members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: 
> undefined reference to `QSerialUI::QSerialUI(QWidget*)'
>
> E:\wcai_perforce\LTS_R3\CFT 
> members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: 
> undefined reference to `QSerialUI::Initialization()'
>
> collect2: ld returned 1 exit status
>
> mingw32-make[2]: *** [build\debug\exe\AppGui.exe] Error 1
>
> mingw32-make[1]: *** [debug] Error 2
>
> mingw32-make: *** [sub-AppGui-make_default] Error 2
>
> Thanks,
>
> Vincent.
>
>
> ------------------------------------------------------------------------
> This message and any attachments may contain Cypress (or its 
> subsidiaries) confidential information. If it has been received in 
> error, please advise the sender and immediately delete this message.


-- 
Regards,
Pritam


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120118/fb05e70c/attachment.html>


More information about the Interest mailing list