error adding symbols: DSO missing from command line
undefined reference to symbol '_ZN8QPrinter15setOutputFormatENS_12OutputFormatE'
解决方法:
在pro 中加入-lQtGui 或加 config += gui
libQtGui.so.4
本文解决了一个在Qt应用程序中遇到的特定错误:'erroraddingsymbols: DSO missing from command line' 和 'undefined reference to symbol '_ZN8QPrinter15setOutputFormatENS_12OutputFormatE'。解决方案是在.pro文件中加入'-lQtGui' 或添加 'config+=gui'。此问题通常发生在链接阶段,当Qt的GUI模块没有正确包含时。
error adding symbols: DSO missing from command line
undefined reference to symbol '_ZN8QPrinter15setOutputFormatENS_12OutputFormatE'
解决方法:
在pro 中加入-lQtGui 或加 config += gui
libQtGui.so.4
8582
214

被折叠的 条评论
为什么被折叠?