
Раскрывающийся текст
#include <QtCore>
#include <QCoreApplication>
#include "BaseSslClass.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
#include <QCoreApplication>
#include "BaseSslClass.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
Раскрывающийся текст
/*
* BaseSslClass.h
*
* Created on: 21.05.2009
* Author: canavar
*/
#ifndef BASESSLCLASS_H_
#define BASESSLCLASS_H_
#include <QtNetwork>
#include <QSslSocket>
class BaseSslClass : public QSslSocket
{
public:
BaseSslClass();
virtual ~BaseSslClass();
};
#endif /* BASESSLCLASS_H_ */
* BaseSslClass.h
*
* Created on: 21.05.2009
* Author: canavar
*/
#ifndef BASESSLCLASS_H_
#define BASESSLCLASS_H_
#include <QtNetwork>
#include <QSslSocket>
class BaseSslClass : public QSslSocket
{
public:
BaseSslClass();
virtual ~BaseSslClass();
};
#endif /* BASESSLCLASS_H_ */
Раскрывающийся текст
/*
* BaseSslClass.cpp
*
* Created on: 21.05.2009
* Author: canavar
*/
#include "BaseSslClass.h"
BaseSslClass::BaseSslClass() {
}
BaseSslClass::~BaseSslClass() {
// TODO Auto-generated destructor stub
}
* BaseSslClass.cpp
*
* Created on: 21.05.2009
* Author: canavar
*/
#include "BaseSslClass.h"
BaseSslClass::BaseSslClass() {
}
BaseSslClass::~BaseSslClass() {
// TODO Auto-generated destructor stub
}
Вот так ругается:
Раскрывающийся текст
mingw32-make debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/Documents and Settings/fr33man/workspace/SslTest'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\..\Qt\4.4.3\include" -I"d:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.4.3\mkspecs\default" -o debug\main.o main.cpp
In file included from main.cpp:3:
BaseSslClass.h:15: error: expected class-name before '{' token
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory `D:/Documents and Settings/fr33man/workspace/SslTest'
mingw32-make: *** [debug] Error 2
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `D:/Documents and Settings/fr33man/workspace/SslTest'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\..\Qt\4.4.3\include\QtNetwork" -I"..\..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\..\Qt\4.4.3\include\QtGui" -I"..\..\..\..\Qt\4.4.3\include" -I"d:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.4.3\mkspecs\default" -o debug\main.o main.cpp
In file included from main.cpp:3:
BaseSslClass.h:15: error: expected class-name before '{' token
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory `D:/Documents and Settings/fr33man/workspace/SslTest'
mingw32-make: *** [debug] Error 2
Вот project файл:
Раскрывающийся текст
TEMPLATE = app
TARGET = SslTest
QT += core network
HEADERS +=
SOURCES += main.cpp
FORMS +=
RESOURCES +=
TARGET = SslTest
QT += core network
HEADERS +=
SOURCES += main.cpp
FORMS +=
RESOURCES +=
Подскажите в чем проблема...
Заранее спасибо..