本文介绍了Qt Creator 中的 Valgrind的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Qt Creator的Memcheck函数返回如下:
Using the Memcheck function of Qt Creator returns the following:
valgrind: Bad option: --xml=yes, but no XML destination specified
valgrind: --xml=yes has been specified, but there is no XML output
valgrind: destination. You must specify an XML output destination
valgrind: using --xml-fd, --xml-file or --xml-socket.
valgrind: Use --help for more information or consult the user manual.
Analyzing finished.
** Unknown error **
配置中是否存在未正确设置的内容,或者这是 Qt Creator 的错误?我在设置中看不到任何可以注入命令行参数或设置 XML 文件输出的地方.
Is there something in the configuration that hasn't been set properly, or is this a Qt Creator bug? I can't see anywhere in the settings where I could possibly inject a command line argument or set the XML file output.
推荐答案
这是由于 xml- valgrind-3.13 中的套接字错误.
现在,如果您想毫无问题地使用 valgrind,可以降级到 valgrind-3.12.
For now, you can downgrade to valgrind-3.12 if you want to use valgrind without any problems.
这篇关于Qt Creator 中的 Valgrind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!