编译时报错:
undefined reference to '_imp_ZN8QWebViewC1EP7QWidget'
undefined reference to '_imp_ZN8QWebView6setUrlERK4QUrl'
collect2: ld returned 1 exit status
解决方案:在工程文件.pro中QT那项在core gui后面加上webkit 即 QT += core gui webkit
本文共 265 字,大约阅读时间需要 1 分钟。
编译时报错:
undefined reference to '_imp_ZN8QWebViewC1EP7QWidget'
undefined reference to '_imp_ZN8QWebView6setUrlERK4QUrl'
collect2: ld returned 1 exit status
解决方案:在工程文件.pro中QT那项在core gui后面加上webkit 即 QT += core gui webkit
转载于:https://my.oschina.net/u/2515635/blog/630879