You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, April 27th 2012, 5:57pm

QtCreator: programs compiled in “simple c++” mode don't work when launching them from qtcreator

Programs compiled in "simple c++" mode in QtCreator don't work correctly when launching them from qtcreator, but work when launching out from this ide.

When launching from QtCreator, the terminal window opens, i can enter in it anything, but program instructions don't work. The behavior without QtCreator is normal. This problem is in both: Debug and Release - buildes. Moreover, when i'm trying to use debug, breakpoints don't work too (even breakpoint set to the first line of main() function in main.cpp).

What can I do to solve this problem? Is this a bug or I'm just clumsy? Thank you.

The simple code that reproduce this problem:

Source code

1
2
3
4
5
6
7
8
9
10
11
#include 

using namespace std;

int main()
{
int num;
cin >> num;
cout << num << "\nHello world!\n";
return 0;
}

Similar threads

Used tags

c++, QtCreator, simple c++