关于使用memwatch的问题
我用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有冲突?