PDA

View Full Version : Wrong compiling result by QT!!??



greenoaktree
13th January 2008, 13:29
:crying:These are two of my helloworld :
without QT class


#include <iostream>
int main()
{
std::cout<<"haha"<<std::endl;

return 0;
}

with QT class

#include <QtDebug>
int main( )
{
qDebug() << "Hello Qt World!";
return 0;
}

I compiled any of these file as like:
\qmake -project
......
\qmake
......
\make
......

There is no any error ,but when I run the helloworld.exe,there is no out !!!???
why!

Is there any bug with QT?!:confused:

greenoaktree
13th January 2008, 13:31
But I use MS VC6 compiled the first helloworld,I got the right output!:mad:

jacek
13th January 2008, 13:36
Add CONFIG += console to your .pro file and re-run "qmake" and "make".