【问题标题】:using qwt in QT Creator gives error Collect2: ld returned 1 exit status在 QT Creator 中使用 qwt 会出现错误 Collect2: ld returned 1 exit status
【发布时间】:2010-07-12 12:41:50
【问题描述】:

开始: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.Release all mingw32-make[1]: Entering directoryC:/Qt/2010.02.1/qt/qwt/qwt-5.2.1/textengines/data_plot' 链接 ....\examples\bin\data_plot.exe c:/qt/20​​10.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: Leaving directoryC:/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”时

出现这种错误的原因可能是什么??

感谢您的任何建议:)

【问题讨论】:

    标签: qt-creator qwt


    【解决方案1】:

    错误信息提示未找到 qwt5 库。

    检查您的 QWT 库是否确实称为 qwt5.dll,并且链接器是否有找到该库的路径(检查您的 . pro 文件)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-31
      • 1970-01-01
      • 2021-04-05
      • 2014-11-30
      • 1970-01-01
      • 2023-02-13
      • 2019-10-02
      • 2021-07-13
      相关资源
      最近更新 更多