Wrong compiling result by QT!!??
:crying:These are two of my helloworld :
without QT class
Code:
#include <iostream>
int main()
{
std::cout<<"haha"<<std::endl;
return 0;
}
with QT class
Code:
#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:
Re: Wrong compiling result by QT!!??
But I use MS VC6 compiled the first helloworld,I got the right output!:mad:
Re: Wrong compiling result by QT!!??
Add CONFIG += console to your .pro file and re-run "qmake" and "make".