程序代码:
#include <QtGui>
#include <QtXml/QtXml>
#include <QtXml/QDomDocument>
int main()
{
QDomDocument domTree;
return 0;
}
出错:
test.o: In function `main':
test.cpp:(.text+0x1d): undefined reference to `QDomDocument::QDomDocument()'
test.cpp:(.text+0x25): undefined reference to `QDomDocument::~QDomDocument()'
collect2: ld returned 1 exit status
make: *** [test] Error 1
请问这个该怎么解决?
附:
"test.pro"
######################################################################
# Automatically generated by qmake (2.01a) Thu Jun 25 21:31:52 2009
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += /path/test/. .
# Input
SOURCES += test.cpp