天工造物局 Undefined reference to ...

Undefined reference to ...

问题: error: undefined reference to `QApplication::QApplication(int&, char**, int)'

          error: undefined reference to `QApplication::exec()'

         error: undefined reference to `QApplication::~QApplication()'

解决方案:     注释掉*.pro中 QT   -= gui;

分析:“undefined reference”错误一般是在连接的时候没有找到需要的库而产生的错误。上面的程序就是由于连接时没有指定相应的 Qt 库从而造成了连接错误。这说明是 Makefile 建立得不正确。

转载于:https://blog.51cto.com/1108038/400481

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐

  • 浏览量 579
  • 收藏 0
  • 0

所有评论(0)

查看更多评论 
已为社区贡献3条内容