在 QT Creator 中使用 qwt 给出错误 Collect2: ld returned 1 exit status
开始: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w mingw32-make:进入目录 C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.释放全部 mingw32-make[1]:进入目录
C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' 链接 ....\examples\bin\data_plot.exe c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:找不到-lqwt5 Collect2: ld 返回 1 退出状态 mingw32-make[1]:离开目录 C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' mingw32-make:离开目录
C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' mingw32-make[1]: * [....\examples\bin\data_plot.exe] 错误 1 mingw32-make: * [release-all] 错误 2 退出并显示代码 2。 构建项目 data_plot 时出错 执行构建步骤“Make”时出现
此类错误的原因可能是什么?
感谢您的任何建议:)
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot'
C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory
linking ....\examples\bin\data_plot.exe
c:/qt/2010.02.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lqwt5
collect2: ld returned 1 exit status
mingw32-make[1]: Leaving directory C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot'
C:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot'
mingw32-make: Leaving directory
mingw32-make[1]: * [....\examples\bin\data_plot.exe] Error 1
mingw32-make: * [release-all] Error 2
Exited with code 2.
Error while building project data_plot
When executing build step 'Make'
What might be the reason of such an error??
Thanks for any suggestion :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息表明未找到 qwt5 库。
检查您的 QWT 库是否确实名为 qwt5.dll,并且为链接器提供了查找该库的路径(检查 .pro 文件中是否有一行读取 LIBS += -L/path/to/qwt -lqwt5) 。
The error message suggests that the qwt5 library was not found.
Check that your QWT library is indeed called qwt5.dll and that the linker is given the path to find that library (Check that there is a line reading LIBS += -L/path/to/qwt -lqwt5 in your .pro file).