【原创】关于QT Creator编译程序时遇到几个错误的解决方法

1.mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall QwtPlot::QwtPlot(class QWidget *)" (??0QwtPlot@@QAE@PAVQWidget@@@Z),该符号在函数 "public: void __thiscall Ui_MainWindow::setupUi 这样的错误:

解决方法:1.执行  创建---》执行qmake

     2.没有添加相应的外部库,添加库的方法是在工程pro文件内右键点击,在弹出的窗口选择添加库,按照指示即可。

 

posted @ 2014-11-27 11:26  M.Bing  阅读(450)  评论(0编辑  收藏  举报