关于使用memwatch的问题

mediaWorker 2010-06-10 11:36:32
我用QT开发了一个用户界面,现在发现程序出现了内存泄露,使用memwatch检测,添加了memwatch.c和memwatch.h以后编译不通过,报出类似以下错误:
/opt/qt-embedded/include/QtCore/qlinkedlist.h:248: error: expected identifier before string constant
/opt/qt-embedded/include/QtCore/qlinkedlist.h:248: error: expected ',' or '...' before string constant
/opt/qt-embedded/include/QtCore/qlinkedlist.h:283: error: expected identifier before string constant
/opt/qt-embedded/include/QtCore/qlinkedlist.h:283: error: expected ',' or '...' before string constant

我使用的是交叉编译器mipsel-linux-g++。

有没有使用过QT和memwatch的大侠给点提示,是不是QT的某些库和memwatch有冲突?
...全文
215 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,128

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧