Hi, Thank you for your help Chris.
Originally Posted by
ChrisW67
Which terminal program are you using. Konsole, for example, causes issue for me but the default "xterm -e" works fine.
When I run my application, "GNOME Terminal 3.4.1.1" jumped out automatically.
You will not be able to adequately debug this program unless you build it in debug mode by using "qmake CONFIG+=debug" manually or form an IDE that does the equivalent for you.
1) Yes, I'm running it, instead of debugging it.
2) Even debugging it with CONFIG += debug, namely
TEMPLATE = app
CONFIG += console debug
CONFIG -= qt
SOURCES += main.cpp
TEMPLATE = app
CONFIG += console debug
CONFIG -= qt
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
the terminal still hangs....
Added after 45 minutes:
Hi, amleto:
Thanks for your reply. But, unfortunately, here on my computer, it doesn't work.
Environment:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
$ uname -a
Linux XXXXXXXXX 3.2.0-27-generic-pae #43-Ubuntu SMP Fri Jul 6 15:06:05 UTC 2012 i686 athlon i386 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
$ uname -a
Linux XXXXXXXXX 3.2.0-27-generic-pae #43-Ubuntu SMP Fri Jul 6 15:06:05 UTC 2012 i686 athlon i386 GNU/Linux
To copy to clipboard, switch view to plain text mode
.pro file
TARGET = noqt
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
TEMPLATE = app
SOURCES += main.cpp
TARGET = noqt
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
TEMPLATE = app
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
main.cpp file
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
To copy to clipboard, switch view to plain text mode
I'm guessing it might have something to do with the OS, namely, current Ubuntu.
Thanks anyway.
Best Regards
Pei
Originally Posted by
amleto
Bookmarks