I'm receive this error :
collect2: ld returned 1 exit status
I just have this ...
//.pro file
# -------------------------------------------------
# Project created by QtCreator 2009-05-24T21:09:57
# -------------------------------------------------
TARGET = Cyne
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
cynemain.cpp
HEADERS += cynemain.h
//cynemain.h
#ifndef CYNEMAIN_H
#define CYNEMAIN_H
#include <QMainWindow>
class CyneMain : public QMainWindow
{
Q_OBJECT
public:
CyneMain();
protected:
void closeEvent(QCloseEvent *event);
};
#endif // CYNEMAIN_H
//cynemain.cpp
#include <QtGui>
#include "cynemain.h"
CyneMain::CyneMain()
{
}
//main.cpp
#include <QtCore/QCoreApplication>
#include "cynemain.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
CyneMain ap;
ap.show();
return a.exec();
}
other question :
Qt Creator is very slow . why ? (run win vista)
Bookmarks