引用qcustomplot编译错误undefined reference to `_imp___ZN8QPrinterC1ENS_11PrinterModeE‘
程序员文章站
2022-06-22 16:17:12
...
引用qcustomplot,在编译的时候报了一堆这样的错误:
undefined reference to
_imp___ZN8QPrinter C1ENS_11PrinterModeE', undefined reference to
_imp___ZN8QPrinter17setOutputFileNameERK7QString’ …
解决方法:修改.pro文件相关行如下:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
推荐阅读
-
Windows编译OpenCV4Android解决undefined reference to std错误
-
引用qcustomplot编译错误undefined reference to `_imp___ZN8QPrinterC1ENS_11PrinterModeE‘
-
解决llvm-9.0开启JIT EVENT后的编译错误'undefined reference to llvm::createLowerSwitchPass()'
-
Sqlite3 交叉编译 undefined reference to `fdatasync' 错误解决
-
Windows编译OpenCV4Android解决undefined reference to std错误
-
caffe编译时出现undefined reference错误的原因与解决办法
-
codeblocks编译时undefined reference to 错误