PDA

View Full Version : First Day with Qt: Makefile: ***Multiple target Patterns. stop.



Anas
27th March 2012, 12:22
Hi guys,
I have medium level experience of programming in C++. Today I got a very small project assignment in University. For that I want to use Qt to connect with MySQl for basic data storage and retrieval. But unfortunately I am stuck at the very first level of compiling and running a hello world type program in Qt.
I have Qt SDK 4.8.0 installed on Windows 7.
I have placed the following source code in a file named: GUITextEdit.cpp

#include <QApplication>
#include <QTextEdit>

int main( int args, char **argv )
{
QApplication myApp( args, argv );
QTextEdit textedit;

textedit.show();
return myApp.exec();
}
Here is what happens when I try to compile this program.

7534
line no. 66 of the generated Makefile is:

Makefile: GUITextEdit.pro c:/QtSDK/Desktop/Qt/4.8.0/mingw/mkspecs/default/qmake.conf c:/QtSDK/Desktop/Qt/4.8.0/mingw/mkspecs/qconfig.pri \
I also have netbeans 7.1 installed with cygwin for my usual C++ ( and java ) programming. Could it be a reason of this problem.
Please help me and tell what could be a reason of this problem.

wysota
27th March 2012, 13:49
Try mingw32-make instead of make.

Anas
27th March 2012, 14:33
Thank you very much .. it worked!! :)