I can't understand why "Cout Test" did not printing. I think this is thread problem.
I can't understand why "Cout Test" did not printing. I think this is thread problem.
But you application doesn't use threads... Does the application output anything at all for you?
Ubuntu 7.04 Feisty
does this matter?
Does this output anything?
Compile it using qmake please, just like you would for a regular Qt app.Qt Code:
#include <iostream> int main(int argc, char **argv){ std::cout << "TESTING" << std::endl; }To copy to clipboard, switch view to plain text mode
yeap! output TESTING =))
Seems to be missing std::endl.
J-P Nurmi
LMZ (29th September 2007)
cout works only on stdout, so you need to tell qmake this is a console app.
Therefore add CONFIG += debug console to the pro file.
In a GUI app you can try to output something to cerr. It might work.
LMZ (29th September 2007)
Bookmarks