Hello guys, I'm new here. I hope you can help me.
I'm using code::blocks with QT and MinGW installed on Windows Xp.
I've done a new QT4 project and specified the QT folder.
The c++ code is ok, because I can compile by terminal the release and it works.
I get an error building and running the debug:
CODE:
#include <QApplication>
#include <QFont>
#include <QPushButton>
#include <QWidget>
class MyWidget : public QWidget
{
public:
MyWidget(QWidget *parent = 0);
};
MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
{
setFixedSize(200, 120);
QPushButton *quit = new QPushButton(tr("Quit"), this);
quit->setGeometry(62, 40, 75, 30);
quit->setFont(QFont("Times", 18, QFont::Bold));
connect(quit, SIGNAL(clicked()), qApp, SLOT(quit()));
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWidget widget;
widget.show();
return app.exec();
}
ERROR:
mingw32-make.exe -f Makefile.qmake.Debug
mingw32-make.exe[1]: Entering directory `C:/Projects/uno'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\uno.exe debug/Ciao.o -L"c:\Qt\4.4.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lqtmaind
mingw32-make.exe[1]: Leaving directory `C:/Projects/uno'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\uno.exe] Error 1
mingw32-make.exe: *** [Debug] Error 2
Process terminated with status 2 (0 minutes, 0 seconds)
1 errors, 0 warnings