|
第四章编译出现如下错误:
# make
Makefile:132: warning: overriding commands for target `moc_netset.cpp'
Makefile:129: warning: ignoring old commands for target `moc_netset.cpp'
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o netset.o netset.cpp
In file included from netset.cpp:9:
netset.h:112: error: multiple types in one declaration
make: *** [netset.o] Error 1
netset.h文件如下:
/****************************************************************************
** Form interface generated from reading ui file 'netset.ui'
**
** Created: Fri Sep 10 18:22:22 2010
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef NETSETUP_H
#define NETSETUP_H
#include <qvariant.h>
#include <qwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QButtonGroup;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QTabWidget;
struct NETCONFIG{
char usecdma;
char nettype;
const char* ipaddr;
const char* netmask;
const char* gateway;
const char* dns;
const char* mac;
const char* netname;
const char* password;
}
class netsetup : public QWidget
{
Q_OBJECT
public:
netsetup( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~netsetup();
QTabWidget* tab;
QWidget* netinfo;
QGroupBox* Network_info;
QLabel* IPAddr_T;
QLabel* NetMask_T;
QLabel* Gateway_T;
QLabel* DNS_T;
QLabel* MAC_T;
QLineEdit* ip_info;
QLineEdit* mask_info;
QLineEdit* gateway_info;
QLineEdit* dns_info;
QLineEdit* mac_info;
QLabel* logo1;
QPushButton* close1;
QWidget* configure;
QPushButton* close2;
QButtonGroup* configure_group;
QRadioButton* autoip;
QRadioButton* cdmaconfig;
QRadioButton* wificonfig;
QRadioButton* userip;
QLabel* logo2;
QWidget* wifi;
QLabel* logo3;
QPushButton* set_1;
QPushButton* close3;
QGroupBox* wifi_set;
QLabel* PassWord_T;
QLineEdit* password;
QLabel* NetName_T;
QLineEdit* netname;
QWidget* tcpip;
QGroupBox* GroupBox3_2;
QLabel* ipaddr;
QLabel* netmask;
QLabel* gateway_t;
QLineEdit* ip;
QLineEdit* mask;
QLineEdit* gateway;
QLabel* logo4;
QPushButton* set_2;
QPushButton* close4;
QWidget* dns_mac;
QLabel* logo5;
QPushButton* set_3;
QPushButton* close5;
QGroupBox* dns_mac_set;
QLabel* dns_t;
QLineEdit* dns;
QLabel* mac_t;
QLineEdit* mac;
NETCONFIG itselfNetConfig;
public slots:
virtual void setNetConfigItem(const QString *,int);
virtual void readNetConfigFile();
virtual void writeNetConfigFile(char);
virtual void autosetip();
virtual void setipinfo();
virtual void setwifi();
virtual void usecdma();
virtual void usersetip();
virtual void usewifi();
};
#endif // NETSETUP_H
似乎与手册中的netset.h内容一致.
请帮忙分析下,是何原因!
谢谢! |
|