问下出现如下错误,该怎么处理?
[root@localhost qt-map]# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I../Trolltech/Qt-4.5.2/mkspecs/linux-g++ -I. -I../Trolltech/Qt-4.5.2/include/QtCore -I../Trolltech/Qt-4.5.2/include/QtGui -I../Trolltech/Qt-4.5.2/include -I. -Imitab -I. -I. -o map_layer.o map_layer.cpp
map_layer.cpp: In member function `void Map_Layer::GetPolyLine(void*,
QStringList&)':
map_layer.cpp:157: warning: unused parameter `QStringList&fields'
map_layer.cpp: In member function `void Map_Layer::GetRegion(void*,
QStringList&)':
map_layer.cpp:240: cannot use `::' in parameter declaration
map_layer.cpp:265: request for member `setColor' in `brush(QColor)', which is
of non-aggregate type `QBrush ()(QColor)'
map_layer.cpp:317: no matching function for call to `QGraphicsTextItem::setX(
qreal)'
map_layer.cpp:318: no matching function for call to `QGraphicsTextItem::setY(
qreal)'
map_layer.cpp:321: no matching function for call to `QGraphicsPolygonItem::
setBrush(QBrush (&)(QColor))'
../Trolltech/Qt-4.5.2/include/QtGui/qgraphicsitem.h:469: candidates are: void
QAbstractGraphicsShapeItem::setBrush(const QBrush&)
map_layer.cpp: In member function `void Map_Layer::GetPoint(void*,
QStringList&)':
map_layer.cpp:342: cannot use `::' in parameter declaration
map_layer.cpp:366: request for member `setColor' in `brush(QColor)', which is
of non-aggregate type `QBrush ()(QColor)'
map_layer.cpp:327: warning: unused parameter `QStringList&fields'
make: *** [map_layer.o] Error 1